@import url('../fonts/fonts.css');

/* ==========================================================================
   CONNEXIONBIZ PTE. LTD. — design system
   Brand palette derived from the logo: deep navy wordmark + teal network mark
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #08203a;
  --navy-800: #0f314c;
  --navy-700: #17456a;
  --navy-600: #23608c;
  --teal-600: #1f7f97;
  --teal-500: #2e96ac;
  --teal-400: #36a0b1;
  --teal-100: #dceef3;
  --teal-050: #f0f8fa;

  /* Neutrals */
  --ink: #0f1c28;
  --ink-70: #46586a;
  --ink-50: #6c7d8e;
  --line: #e3e9ef;
  --line-soft: #eef2f6;
  --surface: #ffffff;
  --surface-alt: #f6f9fb;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 49, 76, 0.06), 0 2px 8px rgba(15, 49, 76, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 49, 76, 0.08), 0 2px 8px rgba(15, 49, 76, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 49, 76, 0.12), 0 4px 12px rgba(15, 49, 76, 0.05);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-70);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--navy-700); }
button { font: inherit; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--navy-800);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--teal-100); color: var(--navy-800); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding: clamp(50px, 6.4vw, 88px) 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding: clamp(38px, 4.4vw, 58px) 0; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-70); }
.measure { max-width: 68ch; }
.measure-sm { max-width: 54ch; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .measure, .center .measure-sm { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.btn svg { transition: transform 0.3s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--navy-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--accent { background: var(--teal-600); color: #fff; }
.btn--accent:hover { background: var(--teal-500); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-alt); color: var(--navy-800); border-color: var(--navy-600); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: var(--teal-050); color: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.7); transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
}
.arrow-link svg { transition: transform 0.3s var(--ease); }
.arrow-link:hover { color: var(--teal-600); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s var(--ease);
}
.header.is-stuck {
  /* opaque once scrolled: a translucent bar over the grey sections
     showed as a pale band with a visible seam.
     No blurred shadow either — a 20px blur painted a light gradient onto the
     section below and read as a white strip. A single hairline is enough. */
  background: #fff;
  border-bottom-color: var(--line);
  box-shadow: none;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
  transition: height 0.3s var(--ease);
}
.header.is-stuck .header__inner { height: 68px; }

.brand { display: flex; align-items: center; flex: none; }
.brand img {
  height: 54px;
  width: auto;
  max-width: none;
  transition: height 0.3s var(--ease);
}
.header.is-stuck .brand img { height: 44px; }
@media (max-width: 420px) { .brand img { height: 44px; } }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__item { position: relative; list-style: none; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-800);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__link:hover, .nav__item:hover > .nav__link { background: var(--surface-alt); color: var(--navy-800); }
.nav__link.is-active { color: var(--teal-600); }
.nav__link .chev { transition: transform 0.25s var(--ease); }
.nav__item:hover .chev { transform: rotate(180deg); }

.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 288px;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--navy-800);
  font-size: 0.93rem;
  font-weight: 500;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.dropdown a span {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-50);
  line-height: 1.4;
}
.dropdown a:hover { background: var(--teal-050); transform: translateX(3px); }

.header__cta { flex: none; margin-left: 8px; }
.header__cta .btn { padding: 12px 22px; }

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.8px;
  margin: 4px auto;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

@media (max-width: 1040px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 84px 0 auto 0;
    display: block;
    max-height: 0;
    padding: 0 var(--gutter);
    overflow: hidden;
    background: #fff;
    /* a transparent 1px border still paints the panel's white background and
       showed as a hairline across the page while the menu was closed */
    border-bottom: 0 solid var(--line);
    transition: max-height 0.45s var(--ease), padding 0.45s var(--ease), border-bottom-width 0.3s;
  }
  .header.is-stuck .nav { top: 68px; }
  .nav.is-open {
    max-height: calc(100vh - 84px);
    padding: 12px var(--gutter) 28px;
    overflow-y: auto;
    border-bottom-width: 1px;
    box-shadow: var(--shadow-md);
  }
  .nav__list { display: block; }
  .nav__link { padding: 14px 4px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .nav__link:hover { background: transparent; }
  .nav__item:hover .chev { transform: none; }
  .dropdown {
    position: static;
    min-width: 0;
    padding: 4px 0 10px 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .dropdown a { padding: 10px 8px; }
  .header__cta { display: none; }
}

/* Page offset for fixed header */
main { padding-top: 84px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(70px, 9vw, 120px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% -8%, var(--teal-050) 0%, rgba(240, 248, 250, 0) 62%),
    radial-gradient(760px 520px at 6% 108%, #f4f8fb 0%, rgba(244, 248, 251, 0) 60%),
    var(--surface);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 56ch; margin-bottom: 34px; }

.hero__art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero__art img { width: min(100%, 460px); opacity: 0.95; }
.hero__art::after {
  content: '';
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 160, 177, 0.14) 0%, rgba(54, 160, 177, 0) 68%);
}

/* Trust strip under hero */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-70);
}
.trust svg { flex: none; color: var(--teal-500); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: clamp(22px, 2.8vw, 34px) clamp(18px, 2.2vw, 28px); background: #fff; }
.section--alt .stat { background: var(--surface-alt); }
.stat__num {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy-800);
}
.stat__num .unit { color: var(--teal-500); }
.stat__label { margin-top: 12px; font-size: 0.92rem; color: var(--ink-50); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--navy-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; }
.card .arrow-link { margin-top: auto; padding-top: 22px; }

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: var(--teal-050);
  color: var(--teal-600);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.card:hover .card__icon { background: var(--navy-800); color: #fff; transform: scale(1.06) rotate(-4deg); }

/* Numbered / feature list items */
.feature { padding: 20px 0; border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature__head { display: flex; align-items: baseline; gap: 16px; }
.feature__num { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--teal-600); }
.feature h3 { margin: 0 0 8px; }
.feature p { font-size: 0.97rem; }

/* Compact numbered list — denser than .feature, for longer enumerations */
.minigrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .minigrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .minigrid { grid-template-columns: 1fr; } }
.minigrid > div { display: block; padding: 24px 24px 26px; background: #fff; }
.section--alt .minigrid > div { background: var(--surface-alt); }
.minigrid .n {
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-500);
}
.minigrid h3 { margin: 0 0 7px; font-size: 1.02rem; }
.minigrid p { margin: 0; font-size: 0.9rem; line-height: 1.55; }

/* Checklist */
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; font-size: 0.97rem; }
.checklist svg { flex: none; margin-top: 4px; color: var(--teal-500); }

/* Split media/text block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 3.6vw, 56px);
}
.split--reverse .split__media { order: -1; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
.split__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 56px);
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
}
.split__media img { width: min(100%, 340px); opacity: 0.9; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--teal-600) 165%);
  color: rgba(255, 255, 255, 0.78);
}
.cta h2 { color: #fff; }
.cta__art {
  position: absolute;
  top: 50%;
  right: -60px;
  width: 420px;
  opacity: 0.09;
  transform: translateY(-50%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -20%, var(--teal-050) 0%, rgba(240, 248, 250, 0) 64%),
    var(--surface);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 64ch; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 0.85rem; color: var(--ink-50); list-style: none; }
.crumbs li { display: flex; gap: 8px; }
.crumbs li:not(:last-child)::after { content: '/'; color: var(--line); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item { display: flex; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-of-type { border-top: 1px solid var(--line); }
.contact-item__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--teal-050); color: var(--teal-600); }
.contact-item h4 { margin: 0 0 3px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-50); }
.contact-item p, .contact-item a { margin: 0; font-size: 1.02rem; font-weight: 500; color: var(--navy-800); }
.contact-item a:hover { color: var(--teal-600); }

.form {
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 7px; font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(54, 160, 177, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa9b8; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { margin-top: 14px; font-size: 0.82rem; color: var(--ink-50); text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  padding: clamp(52px, 6vw, 76px) 0 0;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.93rem;
  overflow: hidden;
}
.footer__watermark {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 380px;
  opacity: 0.055;
  pointer-events: none;
}
.footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 74px; width: auto; max-width: none; margin-bottom: 24px; }
.footer__brand p { max-width: 34ch; font-size: 0.92rem; }
.footer h4 {
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
}
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a { color: rgba(255, 255, 255, 0.62); }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer__contact svg { flex: none; margin-top: 4px; color: var(--teal-400); }

.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 22px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   Language switcher
   ========================================================================== */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-left: 6px;
  background: var(--surface-alt);
  border-radius: 100px;
  flex: none;
}
.lang a {
  padding: 6px 13px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-50);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang a:hover { color: var(--navy-800); }
.lang a.is-current { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
@media (max-width: 1040px) {
  .lang { margin: 18px 0 0; width: max-content; }
}

/* ==========================================================================
   Tag pills / spec groups
   ========================================================================== */
.tags { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
.tag {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy-800);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tag:hover { border-color: var(--teal-400); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.section--alt .tag { background: #fff; }

.spec {
  padding: clamp(20px, 2.4vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.spec h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 1.1rem; }
.spec h3 svg { flex: none; color: var(--teal-600); }
.spec .tags { gap: 8px; }
.spec .tag { background: var(--surface-alt); border-color: transparent; font-size: 0.85rem; }
.spec .tag:hover { background: var(--teal-050); border-color: var(--teal-100); }

/* ==========================================================================
   Product cards (chemicals) with hazard badges
   ========================================================================== */
.product { display: flex; flex-direction: column; }
.product__formula {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal-600);
  margin: -4px 0 14px;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--surface-alt);
  color: var(--ink-70);
  border: 1px solid var(--line);
}
.badge--hazard { background: #fff6e8; border-color: #f5dfbc; color: #96601a; }
.badge--toxic { background: #fdeeee; border-color: #f3cfcf; color: #9a3232; }
.badge--corrosive { background: #f0f0fa; border-color: #d8d8ee; color: #4a4a86; }
.badge--safe { background: var(--teal-050); border-color: var(--teal-100); color: var(--teal-600); }

.notice {
  display: flex;
  gap: 14px;
  padding: 20px 24px;
  background: #fff8ee;
  border: 1px solid #f3e0c2;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: #7d5518;
}
.notice svg { flex: none; margin-top: 3px; }
.notice strong { color: #5f3f0e; }

/* ==========================================================================
   Vendor / brand strip
   ========================================================================== */
.vendors { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.vendor {
  padding: 11px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-800);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.vendor:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps--4, .steps--3 { grid-template-columns: 1fr; } }
.step { padding: clamp(20px, 2.4vw, 28px); background: #fff; }
.section--alt .step { background: var(--surface-alt); }
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-500);
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 0.93rem; }

/* ==========================================================================
   Accordion
   ========================================================================== */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.accordion__trigger:hover { color: var(--teal-600); }
.accordion__trigger .plus { position: relative; flex: none; width: 20px; height: 20px; }
.accordion__trigger .plus::before,
.accordion__trigger .plus::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.accordion__trigger .plus::after { transform: rotate(90deg); }
.accordion__item.is-open .plus::after { transform: rotate(0deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.accordion__panel > div { padding-bottom: 26px; font-size: 0.97rem; }

/* ==========================================================================
   Callout / quote
   ========================================================================== */
.callout {
  padding: clamp(24px, 2.8vw, 36px);
  background: var(--teal-050);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--teal-400);
}
.callout p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--navy-800); font-weight: 500; }

.mission {
  padding: clamp(28px, 3.4vw, 46px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}
.mission h2 { color: #fff; }
.mission p { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.45; max-width: 30ch; margin-inline: auto; color: #fff; }

/* ==========================================================================
   Division card (large, on services overview)
   ========================================================================== */
.division {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(26px, 3.2vw, 52px);
  padding: clamp(24px, 2.8vw, 38px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.division:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
@media (max-width: 880px) { .division { grid-template-columns: 1fr; } }
.division__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--teal-050), #eef3f7);
  overflow: hidden;
}
.division__visual img { width: 62%; opacity: 0.5; }
.division__visual svg { width: 84px; height: 84px; color: var(--teal-600); opacity: 0.9; }
.division--flip .division__visual { order: -1; }
@media (max-width: 880px) { .division--flip .division__visual { order: 0; } }

/* ==========================================================================
   Map
   ========================================================================== */
.map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  aspect-ratio: 16 / 9;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.9); }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   Prose (privacy policy etc.)
   ========================================================================== */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: 1.12rem; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }

/* ==========================================================================
   Photography
   ========================================================================== */
.photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 3 / 2; }

/* Photo on top of a unit card */
.card--photo { padding: 0; overflow: hidden; }
.card--photo .card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-alt); }
.card--photo .card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card--photo:hover .card__media img { transform: scale(1.05); }
.card--photo .card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 2.8vw, 34px); }
.card--photo .card__body .arrow-link { margin-top: auto; padding-top: 20px; }
.card--photo .card__kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-600);
}

/* Product gallery — a row of captioned photos */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery .shot {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-alt);
  aspect-ratio: 16 / 9;
}
.gallery .shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.gallery figure:hover .shot img { transform: scale(1.06); }
.gallery figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-70);
}
.gallery figcaption strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy-800);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Full-bleed photo band with copy over it */
.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 38vw, 440px);
  padding: clamp(40px, 4.6vw, 66px) 0;
  overflow: hidden;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.8);
}
.band__bg { position: absolute; inset: 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 32, 58, 0.92) 0%, rgba(8, 32, 58, 0.62) 55%, rgba(8, 32, 58, 0.34) 100%);
}
.band__inner { position: relative; z-index: 2; width: 100%; }
.band h2 { color: #fff; }
.band .eyebrow { color: var(--teal-400); }
.band .lead { color: rgba(255, 255, 255, 0.82); }

/* Small fact row used under a band — statements, not invented metrics */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 32px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.facts li {
  list-style: none;
  padding: 0 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  line-height: 1.5;
}
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts strong { display: block; margin-bottom: 5px; color: #fff; font-size: 1.02rem; }

/* Focus visibility */
:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 3px; border-radius: 4px; }

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy-800);
  color: #fff;
  border-radius: 8px;
}
.skip:focus { left: 16px; color: #fff; }
