/* ============================================================
   BEHUB SHARED DESIGN SYSTEM — v3
   Include this file in every page:
   <link rel="stylesheet" href="behub-shared.css">
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --primary:       #111111;
  --background:    #FFFFFF;
  --accent:        #E11D1D;
  --accent-hover:  #C91414;
  --secondary:     #F5F5F5;
  --muted:         #6B6B6B;
  --border:        #E5E5E5;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     14px;
  --container:     1200px;
  --nav-h:         72px;
  --transition:    0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Sections ──────────────────────────────────────────────── */
.section       { padding: 96px 0; }
.section--alt  { background: var(--secondary); }
.section--dark { background: var(--primary); color: #fff; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-heading {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 14px;
}
.section--dark .section-heading { color: #fff; }

.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 48px;
}
.section--dark .section-sub { color: rgba(255,255,255,0.6); }

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.4;
  font-family: 'Inter', system-ui, sans-serif;
}
.btn-lg { padding: 15px 34px; font-size: 15px; }
.btn-sm { padding: 9px 18px;  font-size: 13px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(225,29,29,0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--secondary);
}

.btn-white {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.75);
}

/* ── Tag / Pill ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(225,29,29,0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ── Reveal animation ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: var(--background);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.navbar__logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.navbar__logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.navbar__nav a {
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.navbar__nav a:hover { color: var(--primary); background: var(--secondary); }
.navbar__nav a.active {
  color: var(--accent);
  background: rgba(225,29,29,0.07);
  font-weight: 600;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
}
.navbar__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.navbar__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--background);
  z-index: 890;
  padding: 16px 24px 32px;
  flex-direction: column;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.navbar__mobile.open { display: flex; }
.navbar__mobile a {
  display: block;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}
.navbar__mobile a:hover { color: var(--accent); }
.mobile-cta {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer__brand-logo img {
  width: 34px; height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer__brand-logo span {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.footer__brand-desc {
  font-size: 14px;
  line-height: 1.75;
  max-width: 290px;
  margin-bottom: 28px;
}

.footer__socials { display: flex; gap: 8px; }
.footer__social {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer__social:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer__nav a:hover { color: #fff; }

.footer__contact-item { margin-bottom: 14px; font-size: 14px; line-height: 1.5; }
.footer__contact-item strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 3px;
}
.footer__contact-item a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer__contact-item a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-links a { color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer__bottom-links a:hover { color: rgba(255,255,255,0.6); }

.dev-credit {
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: #999;
}
.dev-credit a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.3s ease, opacity 0.3s ease, text-decoration-color 0.3s ease;
}
.dev-credit a:hover {
  color: #fff;
  opacity: 0.85;
  text-decoration-color: currentColor;
}
.dev-credit a:focus-visible {
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 4px;
}

/* ============================================================
   PAGE HERO BANNER (for inner pages)
   ============================================================ */
.page-hero {
  background: var(--secondary);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { margin-bottom: 10px; }
.page-hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .container { padding: 0 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .navbar__nav { display: none; }
  .navbar__actions .btn-secondary,
  .navbar__actions .btn-primary { display: none; }
  .navbar__burger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 520px) {
  .section { padding: 40px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom-links { flex-direction: column; gap: 8px; }
  .dev-credit { width: 100%; font-size: 12px; }
}
