/* Kaimerry Bearing — premium industrial (SKF / SAG inspired) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --brand: #0057b8;
  --brand-dark: #003d82;
  --brand-light: #1a73e8;
  --accent: #e87722;
  --accent-dark: #c45f12;
  --ink: #0b1b2b;
  --steel: #5a6b7d;
  --mist: #f3f6fa;
  --line: #d7e0ea;
  --font-sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --container: 1240px;
  --radius: 0.5rem;
  --shadow: 0 10px 40px rgba(0, 61, 130, 0.12);
}

body {
  font-family: var(--font-sans);
  color: var(--steel);
  background: #fff;
}

.header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.logo-name {
  color: var(--brand-dark);
  letter-spacing: 0.08em;
  font-weight: 700;
}
.logo-tagline {
  font-family: var(--font-serif);
  color: var(--brand);
  font-style: italic;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--brand);
  background: rgba(0, 87, 184, 0.06);
}

.btn-accent,
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border: none;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 87, 184, 0.28);
}
.btn-accent:hover,
.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.page-home .btn-outline {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: transparent;
}

/* Hero — cinematic industrial */
.hero-lts,
.hero-km {
  min-height: min(88vh, 760px);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 87, 184, 0.35), transparent 55%),
    linear-gradient(120deg, #031525 0%, #0a2744 45%, #0057b8 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-km::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(232, 119, 34, 0.22), transparent 60%);
  pointer-events: none;
}
.hero-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  color: #fff;
  max-width: 16ch;
}
.hero-desc {
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
  font-size: 1.05rem;
}

.section-title {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

/* KPI strip */
.kpi-km,
.home-kpi {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi-item strong,
.stat-value {
  color: var(--brand-dark);
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
}

/* Cards */
.card,
.feature-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover,
.feature-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 87, 184, 0.35);
  box-shadow: var(--shadow);
}

/* Lang switcher */
.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  margin-right: 0.5rem;
}
.lang-switch a {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  color: var(--steel);
  border: 1px solid transparent;
}
.lang-switch a.is-active {
  color: var(--brand-dark);
  border-color: var(--line);
  background: var(--mist);
}

/* Product selector */
.selector-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-top: -3rem;
  position: relative;
  z-index: 5;
}
.selector-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .selector-grid {
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: end;
  }
}
.selector-grid label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.selector-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.selector-results {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .selector-results {
    grid-template-columns: repeat(3, 1fr);
  }
}
.result-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.1rem;
  background: #fff;
}
.result-card h3 {
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.result-card .code {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
}
.result-meta {
  font-size: 0.85rem;
  color: var(--steel);
  margin: 0.75rem 0 1rem;
}
.result-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Floating contact dock */
.km-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.km-float a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.km-float .wa { background: #25d366; }
.km-float .sk { background: #00aff0; }
.km-float .inq { background: var(--brand); }

.page-hero-km {
  background: linear-gradient(115deg, #031525, #0057b8);
  color: #fff;
  padding: 4.5rem 0 5.5rem;
}
.page-hero-km h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
}

.footer {
  background: #071524;
  color: rgba(255, 255, 255, 0.75);
}
.footer a:hover { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: kmRise 0.7s ease both;
  }
  @keyframes kmRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}
