/* Bating Group — furniture hardware & mechanisms, export marketing site */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-alt: #f1f4f7;
  --text: #1a2433;
  --text-muted: #5b6b7d;
  --primary: #0b5fa8;
  --primary-dark: #073e6e;
  --primary-tint: #e8f1fa;
  --accent: #f0a022;
  --accent-ink: #7a4b00;
  --accent-tint: #fef3e0;
  --crimson: #a61745;
  --green: #2e8b57;
  --border: #e2e6ea;
  --shadow: 0 10px 30px -12px rgba(11, 95, 168, 0.18);
  --radius: 14px;
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1620;
    --surface: #15202c;
    --surface-alt: #101923;
    --text: #e7ecf2;
    --text-muted: #9aa7b4;
    --primary: #4fa3e8;
    --primary-dark: #0b5fa8;
    --primary-tint: #15293b;
    --accent: #ffc14d;
    --accent-ink: #2a1800;
    --accent-tint: #2a2013;
    --border: #26323f;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg: #0e1620;
  --surface: #15202c;
  --surface-alt: #101923;
  --text: #e7ecf2;
  --text-muted: #9aa7b4;
  --primary: #4fa3e8;
  --primary-dark: #0b5fa8;
  --primary-tint: #15293b;
  --accent: #ffc14d;
  --accent-ink: #2a1800;
  --accent-tint: #2a2013;
  --border: #26323f;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text); }
.muted { color: var(--text-muted); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  flex-shrink: 0;
}
.brand img { height: 38px; width: auto; }
.brand:hover { text-decoration: none; }
.brand .tag {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

nav.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
}
nav.main-nav a:hover { background: var(--surface-alt); text-decoration: none; }
nav.main-nav a.current { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(0.95); text-decoration: none; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-alt); text-decoration: none; }
.btn-whatsapp { background: #25d366; color: #06301b; }
.btn-whatsapp:hover { filter: brightness(0.95); text-decoration: none; }

#google_translate_element { font-size: 0.85rem; }
.goog-te-gadget { font-family: "Source Sans 3", sans-serif !important; color: var(--text-muted) !important; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--primary-tint), transparent 60%),
    var(--bg);
  padding: 72px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-markets {
  display: flex;
  gap: 22px;
  margin-top: 36px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hero-markets strong { color: var(--text); display: block; font-size: 1.05rem; }

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.hero-panel .logo-mark { width: 92px; margin: 0 auto 18px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.stat-row .stat { text-align: center; padding: 14px 8px; border-radius: 10px; background: var(--surface-alt); }
.stat-row .stat b { display: block; font-family: "Oswald", sans-serif; font-size: 1.4rem; color: var(--primary); }
.stat-row .stat span { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 0 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.card .icon svg { width: 26px; height: 26px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 0.93rem; }
.card ul li { margin-bottom: 4px; }

.band {
  background: var(--primary-dark);
  color: #fff;
}
.band h2, .band p { color: #fff; }
.band .muted { color: #c7dcef; }
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.market-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.market-pill .flag { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.market-pill b { display: block; font-family: "Oswald", sans-serif; }
.market-pill span { font-size: 0.82rem; color: #c7dcef; }

.cta-band {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: #fff; margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

table.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
table.spec-table th, table.spec-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
table.spec-table th { background: var(--surface-alt); font-family: "Oswald", sans-serif; font-weight: 500; }

.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-muted); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-family: "Source Sans 3", sans-serif; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text); font-size: 0.93rem; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 32px; }

.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  z-index: 60;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.main-nav { display: none; }
  nav.main-nav.open { display: flex; width: 100%; order: 4; flex-direction: column; }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: flex; order: 3; }
  #google_translate_element { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

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