/* =========================================================
   Global Chem Saves Water — base stylesheet
   Plain CSS, no build step. Keep it lean.
   ========================================================= */

:root {
  /* Brand palette — anchored on rgb(62, 120, 178) = #3e78b2 */
  --color-bg: #ffffff;
  --color-fg: #0f1a24;
  --color-muted: #5a6b7a;
  --color-accent: #3e78b2;         /* Global Chem brand blue */
  --color-accent-dark: #2e5d8f;    /* hover / pressed */
  --color-accent-soft: #ebf3fa;    /* subtle tinted backgrounds */
  --color-surface: #f5f8fc;
  --color-border: #dde5ed;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 36, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 26, 36, 0.10);

  --max-width: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

h1, h2, h3 {
  color: var(--color-fg);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted { color: var(--color-muted); }
.small { font-size: 0.9rem; }
.accent { color: var(--color-accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.5) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--color-fg);
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.site-nav a {
  color: var(--color-fg);
  font-weight: 500;
}

.site-nav a.nav-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta:focus {
  background: var(--color-accent-dark);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
  background:
    radial-gradient(ellipse at top, var(--color-accent-soft), transparent 60%),
    var(--color-bg);
}

.hero h1 {
  max-width: 22ch;
}

.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--color-muted);
  max-width: 62ch;
  margin-bottom: 1.5em;
}

/* Responsive 16:9 video wrapper */
.video-wrap {
  margin: 24px 0 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}

.video-frame {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-fg);
  border-color: var(--color-border);
}

.btn-ghost:hover,
.btn-ghost:focus {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(48px, 7vw, 88px) 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  color: var(--color-accent-dark);
  margin-bottom: 0.4em;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.service-list li {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* ---------- Product badge (Anodamine) ---------- */

.product-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.product-badge img {
  height: 48px;
  width: auto;
}

.product-badge .product-copy {
  flex: 1 1 240px;
  color: var(--color-muted);
}

.product-badge .product-copy strong {
  color: var(--color-fg);
  display: block;
  margin-bottom: 2px;
}

/* ---------- CTA section ---------- */

.cta-section {
  text-align: center;
  background:
    linear-gradient(180deg, var(--color-accent-soft), transparent);
}

.cta-section .btn {
  margin-top: 8px;
}

.cta-section .small {
  margin-top: 20px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-inner p { margin: 0; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
