/* ============================================================
   TOMRIS — theme synced to R Schmitt Enertec colors.
   NOTE: hexes derived from RSE web presence; confirm exact
   values against RSE brand kit, then adjust ONLY these vars.
   ============================================================ */
:root {
  --ink: #20242a;
  --ink-soft: #5a626d;
  --paper: #ffffff;
  --panel: #f2f5f8;          /* cool steel tint */
  --dark: #22272e;           /* anthracite (RSE dark) */
  --dark-text: #c6cdd6;
  --accent: #1f6fc4;         /* RSE blue */
  --accent-bright: #2d89ef;  /* RSE azure highlight */
  --accent-ink: #ffffff;
  --line: #dfe5ec;
  --radius: 10px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Rajdhani", "Inter", -apple-system, sans-serif; /* distinctive industrial display face */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16.5px; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, .logo, .stat b, .proof .big, .step h4 { font-family: var(--font-display); }

/* ---------- header ---------- */
header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 700; letter-spacing: .15em; color: var(--ink); line-height: 1.05; }
.logo-mark { height: 30px; width: auto; flex-shrink: 0; }
.logo-mark path { stroke: var(--accent); }
.logo small { display: block; font-family: var(--font); font-size: 9px; font-weight: 600; letter-spacing: .09em; color: var(--ink-soft); }
nav.menu { display: flex; gap: 17px; align-items: center; }
nav.menu a { color: var(--ink); font-size: 14.5px; font-weight: 600; }
nav.menu a:hover, nav.menu a.active { color: var(--accent); }
.nav-cta { background: var(--accent); color: var(--accent-ink) !important; padding: 9px 18px; border-radius: 999px; }
#menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, var(--dark) 0%, #2a3542 100%); color: #fff; padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .kicker { color: var(--accent-bright); text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px; font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 700; }
.hero p.lead { color: var(--dark-text); margin: 20px 0 30px; font-size: 17.5px; }
.hero-art { width: 100%; height: auto; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 13px 26px; border-radius: 999px; font-size: 15px; }
.btn:hover { background: var(--accent-bright); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #fff; margin-left: 10px; }
.btn.ghost.on-light { border-color: var(--accent); color: var(--accent); }

/* ---------- stat band ---------- */
.stats { background: var(--panel); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 26px; padding-bottom: 26px; }
.stat b { display: block; font-size: 30px; color: var(--accent); font-weight: 700; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-soft); }

/* ---------- sections ---------- */
section { padding: 70px 0; }
section.alt { background: var(--panel); }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 37px); font-weight: 700; margin: 8px 0 14px; line-height: 1.15; }
.sub { color: var(--ink-soft); max-width: 720px; margin-bottom: 34px; }
h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .tag { display: inline-block; background: var(--panel); color: var(--accent); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; letter-spacing: .04em; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card .eff { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.card .eff b { color: var(--accent); font-size: 18px; font-family: var(--font-display); }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
th { background: var(--dark); color: #fff; text-align: left; padding: 12px 16px; font-size: 13.5px; letter-spacing: .04em; }
td { padding: 12px 16px; border-top: 1px solid var(--line); }
tr:nth-child(even) td { background: var(--panel); }
td b { color: var(--accent); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 640px; }

/* ---------- checklist ---------- */
ul.ticks { list-style: none; }
ul.ticks li { padding: 8px 0 8px 32px; position: relative; color: var(--ink-soft); }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; display: flex; align-items: center; justify-content: center; }
ul.ticks li b { color: var(--ink); }

/* ---------- turnkey spectrum ---------- */
.spectrum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; margin-top: 10px; }
.step { background: var(--paper); border: 1px solid var(--line); padding: 24px 20px; position: relative; counter-increment: step; }
.step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.step::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; font-family: var(--font-display); }
.step h4 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- timeline ---------- */
.timeline { list-style: none; border-left: 2px solid var(--accent); margin: 20px 0 0 8px; }
.timeline li { padding: 0 0 26px 26px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); }
.timeline b { display: block; color: var(--accent); font-size: 16px; font-family: var(--font-display); }
.timeline p { color: var(--ink-soft); font-size: 15px; }

/* ---------- proof callout ---------- */
.proof { background: linear-gradient(135deg, var(--dark) 0%, #2a3542 100%); color: #fff; border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.proof .big { font-size: clamp(42px, 6vw, 66px); font-weight: 700; color: var(--accent-bright); line-height: 1; }
.proof .big small { display: block; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--dark-text); letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.proof p { color: var(--dark-text); }

/* ---------- applications ---------- */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.app { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 14.5px; font-weight: 600; }
.app span { display: block; font-weight: 400; font-size: 13px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); padding: 56px 0; text-align: center; }
.cta-band h2 { color: var(--accent-ink); }
.cta-band .btn { background: #fff; color: var(--accent); margin-top: 8px; }
.cta-band .btn:hover { background: var(--panel); }

/* ---------- forms ---------- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 13.5px; font-weight: 700; display: block; margin: 14px 0 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font); font-size: 16px; background: var(--paper); color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
button.btn { border: 0; cursor: pointer; margin-top: 20px; }

/* ---------- diagrams & illustrations ---------- */
.diagram { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 10px 0 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .cap { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 10px; }
.svg-ink { stroke: var(--ink); }
.svg-blue { fill: var(--accent); }

/* ---------- photos ---------- */
.photo { width: 100%; border-radius: var(--radius); display: block; object-fit: cover; }
figure.ph { margin: 0; }
figure.ph figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.hero-photo img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.hero-photo figcaption { font-size: 11.5px; color: var(--dark-text); margin-top: 10px; opacity: .8; }
.photo-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-band figure.ph img { height: 220px; }
.side-photo { border-radius: var(--radius); overflow: hidden; }
.side-photo img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
@media (max-width: 900px) { .photo-band { grid-template-columns: 1fr; } }

/* ---------- distributor badge ---------- */
.rse-badge { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 8px; padding: 12px 16px; margin-top: 16px; max-width: 340px; }
.rse-badge img { height: 44px; width: auto; }
.rse-badge div { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }
.rse-badge div b { color: var(--ink); font-size: 12.5px; display: block; }

/* ---------- footer ---------- */
footer { background: var(--dark); color: var(--dark-text); padding: 48px 0 28px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
footer h5 { color: #fff; font-size: 14px; margin-bottom: 10px; letter-spacing: .06em; }
footer a { color: var(--dark-text); display: block; padding: 3px 0; }
footer a:hover { color: #fff; }
.vet-badge { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 6px 14px; }
footer .fine { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 12.5px; color: #8b939d; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--dark) 0%, #2a3542 100%); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
.page-hero p { color: var(--dark-text); max-width: 680px; margin-top: 12px; }

/* ---------- motion & polish ---------- */
header { transition: box-shadow .25s ease; }
header.scrolled { box-shadow: 0 6px 22px rgba(32,36,42,.10); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
.card, .app, .metric, .money { transition: transform .22s ease, box-shadow .22s ease, opacity .55s ease; }
.card:hover, .app:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(32,36,42,.10); }
figure.ph { overflow: hidden; border-radius: var(--radius); }
figure.ph img { transition: transform .5s ease; }
figure.ph:hover img { transform: scale(1.035); }
.btn { transition: background .2s ease, transform .15s ease; }
.btn:active { transform: scale(.98); }
a.more { transition: padding-left .18s ease; }
.card:hover a.more { padding-left: 5px; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .app, figure.ph img, .btn, header { transition: none; }
  .card:hover, .app:hover { transform: none; }
  figure.ph:hover img { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art, .hero-photo { max-width: 520px; margin: 0 auto; }
  .grid-3, .grid-4, .apps, .spectrum { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .step, .step:first-child, .step:last-child { border-radius: var(--radius); }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  nav.menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 10px 24px 20px; align-items: flex-start; box-shadow: 0 14px 30px rgba(0,0,0,.12); }
  nav.menu.open { display: flex; }
  nav.menu a { padding: 13px 0; width: 100%; font-size: 16px; }
  nav.menu a.nav-cta { text-align: center; margin-top: 8px; }
  #menu-toggle { display: block; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .apps, .spectrum, form .row { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; text-align: center; }
  .btn.ghost { margin-left: 0; margin-top: 10px; }
  .btn { display: block; text-align: center; }
  section { padding: 48px 0; }
  .hero { padding: 52px 0 44px; }
  .photo-band figure.ph img { height: 190px; }
}
