/* ============================================================
   Breakbulk Logistics Ltd - Main Stylesheet
   Font: Lato | Brand red: #D2261D | Ink: #23262B
   ============================================================ */

:root {
  --red: #D2261D;
  --red-dark: #A81C15;
  --ink: #23262B;
  --ink-soft: #3A3E45;
  --steel: #5C636D;
  --fog: #F4F5F7;
  --line: #E4E7EB;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(20, 24, 31, 0.10);
  --shadow-sm: 0 2px 10px rgba(20, 24, 31, 0.08);
  --maxw: 1200px;
  --tabbar-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

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

h1, h2, h3, h4 { font-weight: 900; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

/* Signature element: cargo-tag kicker (nod to warehouse routing labels) */
.kicker {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px 5px 20px;
  margin-bottom: 16px;
  position: relative;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.kicker::before {
  content: "";
  position: absolute;
  left: 9px; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}
.kicker-light { background: #fff; color: var(--red); }
.kicker-light::before { background: var(--red); }

.section { padding: 84px 0; }
.section-alt { background: var(--fog); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--steel); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 14px 30px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--fog); color: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #C9CDD3; font-size: 0.8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; color: #C9CDD3; }
a.topbar-item:hover { color: #fff; }
.tb-ico { width: 13px; height: 13px; fill: var(--red); flex: none; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand img { width: 170px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--red); }
.main-nav a.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 11px 22px;
  border-radius: 6px;
}
.main-nav a.nav-cta:hover { background: var(--red-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero / Slider ---------- */
.hero {
  position: relative;
  min-height: 620px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.9s ease;
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18,20,24,0.88) 0%, rgba(18,20,24,0.72) 45%, rgba(18,20,24,0.35) 100%);
}
.hero-slide .container { position: relative; z-index: 1; width: 100%; }
.hero-content { max-width: 640px; padding: 100px 0; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { font-size: 1.13rem; font-weight: 300; color: #E8EAED; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.15);
  z-index: 2;
}
.hero-strip-inner { display: flex; gap: 0; }
.hero-strip-item {
  flex: 1;
  padding: 18px 20px;
  border-left: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #DFE2E6;
}
.hero-strip-item:first-child { border-left: 0; }
.hero-strip-item strong { display: block; color: #fff; font-size: 1rem; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 5px;
  background: rgba(255,255,255,0.45);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s, background 0.25s;
}
.hero-dot.active { width: 26px; background: #fff; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-img { height: 210px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--steel); font-size: 0.95rem; flex: 1; }
.card-link {
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link::after { content: "\2192"; transition: transform 0.2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Split (why us) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-img { position: relative; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 460px; object-fit: cover; }
.split-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--red); color: #fff;
  padding: 20px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-badge strong { display: block; font-size: 1.9rem; font-weight: 900; line-height: 1.1; }
.split-badge span { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.checklist { list-style: none; margin-top: 22px; }
.checklist li { padding: 9px 0 9px 34px; position: relative; color: var(--ink-soft); }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 18px; height: 18px;
  background: var(--red);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 0, 40% 66%);
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink); color: #fff; padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat strong { display: block; font-size: 2.8rem; font-weight: 900; color: var(--red); line-height: 1.1; }
.stat span { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: #B9BEC6; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  counter-increment: step;
  position: relative;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: var(--steel); font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { border-radius: 8px; overflow: hidden; display: block; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.35s; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: 56px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 74px 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.28; z-index: -1;
}
.page-hero h1 { color: #fff; }
.breadcrumbs { font-size: 0.83rem; color: #AEB4BC; margin-top: 12px; overflow-wrap: anywhere; }
.breadcrumbs a { color: #DFE2E6; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- CMS content ---------- */
.content-wrap { max-width: 820px; }
.cms-content h2 { margin: 36px 0 14px; }
.cms-content h3 { margin: 28px 0 10px; }
.cms-content p { margin-bottom: 16px; color: var(--ink-soft); }
.cms-content ul, .cms-content ol { margin: 0 0 18px 22px; color: var(--ink-soft); }
.cms-content li { margin-bottom: 7px; }
.cms-content img { border-radius: var(--radius); margin: 22px 0; }
.cms-content a { font-weight: 700; }
.cms-content blockquote {
  border-left: 4px solid var(--red);
  padding: 10px 20px;
  background: var(--fog);
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 700; font-size: 0.85rem; margin-bottom: 7px; letter-spacing: 0.02em; }
.form-group label .req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(210, 38, 29, 0.12);
}
.form-note { font-size: 0.82rem; color: var(--steel); margin-top: 14px; }

.alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-weight: 700; }
.alert-success { background: #E7F6EC; color: #1B6B3A; border: 1px solid #BCE3C9; }
.alert-error { background: #FCE9E8; color: #A81C15; border: 1px solid #F2C3C0; }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--red);
  transition: transform 0.25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 20px 20px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 20px 22px;
}
.contact-card h3 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; }
.contact-card p { font-weight: 700; font-size: 1.02rem; }
.contact-card a { color: var(--ink); overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--red); }
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Chatbot ---------- */
.chatbot { position: fixed; right: 20px; bottom: 20px; z-index: 990; }
.chatbot-toggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--red);
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.chatbot-toggle:hover { background: var(--red-dark); transform: scale(1.05); }
.chatbot-toggle svg { width: 26px; height: 26px; fill: #fff; }
.chatbot-toggle .chat-close-ico { display: none; }
.chatbot.open .chat-open-ico { display: none; }
.chatbot.open .chat-close-ico { display: block; }
.chatbot-panel {
  position: absolute;
  right: 0; bottom: 72px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(20,24,31,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chatbot.open .chatbot-panel { display: flex; }
.chatbot-header { background: var(--ink); color: #fff; padding: 16px 18px; }
.chatbot-header strong { display: block; font-size: 0.98rem; }
.chatbot-status { font-size: 0.75rem; color: #9FE0B0; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--fog); }
.chat-msg { max-width: 85%; padding: 11px 14px; border-radius: 12px; font-size: 0.92rem; line-height: 1.5; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--red); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chatbot-suggestions { padding: 8px 12px 0; background: var(--fog); display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 6px 12px;
  cursor: pointer;
  transition: 0.2s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chatbot-input { display: flex; border-top: 1px solid var(--line); background: var(--fog); padding: 10px; gap: 8px; }
.chatbot-input input {
  flex: 1;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}
.chatbot-input input:focus { outline: none; border-color: var(--red); }
.chatbot-input button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chatbot-input button svg { width: 18px; height: 18px; fill: #fff; }
.chatbot-input button:hover { background: var(--red-dark); }

/* ---------- Mobile tab bar (hidden on desktop) ---------- */
.mobile-tabbar { display: none; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(210, 38, 29, 0.5);
  outline-offset: 2px;
}

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

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split-img img { height: 360px; }
}

/* ============================================================
   MOBILE - app-style layout
   ============================================================ */
@media (max-width: 820px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); background: var(--fog); }
  .topbar { display: none; }

  .site-header { border-bottom: 0; box-shadow: var(--shadow-sm); }
  .header-inner { min-height: 64px; }
  .brand img { width: 138px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    box-shadow: 0 14px 24px rgba(20,24,31,0.12);
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 24px; border-bottom: 1px solid var(--fog); word-break: break-word; }
  .main-nav a.nav-cta { margin: 12px 20px 0; border-radius: 8px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .section { padding: 48px 0; }
  .hero { min-height: 0; }
  .hero-content { padding: 64px 0 84px; }
  .hero p { font-size: 1rem; }
  .hero-actions .btn { flex: 1; min-width: 150px; }
  .hero-strip-inner { flex-direction: column; }
  .hero-strip-item { border-left: 0; border-top: 1px solid rgba(255,255,255,0.15); padding: 12px 20px; }
  .hero-strip { display: none; }
  .hero-dots { bottom: 20px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .card { border-radius: 16px; box-shadow: var(--shadow-sm); border: 0; }
  .card-img { height: 180px; }

  .stats-grid { gap: 26px 12px; }
  .stat strong { font-size: 2.1rem; }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-grid img { height: 140px; }

  .split-badge { left: 12px; bottom: -18px; padding: 14px 18px; }
  .split-badge strong { font-size: 1.4rem; }

  .cta-band-inner { flex-direction: column; text-align: center; }
  .form-card { padding: 24px 18px; border-radius: 16px; border: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 46px 0; }

  .footer-grid { grid-template-columns: 1fr; }

  /* App-style bottom tab bar */
  .mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(20,24,31,0.08);
    z-index: 950;
  }
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--steel);
  }
  .tab-item svg { width: 22px; height: 22px; fill: var(--steel); }
  .tab-item:hover, .tab-item:hover svg { color: var(--red); fill: var(--red); }
  .tab-quote { position: relative; }
  .tab-quote-circle {
    width: 46px; height: 46px;
    margin-top: -26px;
    border-radius: 50%;
    background: var(--red);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(210,38,29,0.4);
    border: 4px solid var(--fog);
  }
  .tab-quote-circle svg { fill: #fff; width: 22px; height: 22px; }
  .tab-quote span:last-child { color: var(--red); }

  .chatbot { right: 14px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px); }
  .chatbot-panel { bottom: 66px; height: 420px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9BEC6; font-size: 0.92rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding: 64px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-logo { background: #fff; padding: 10px 14px; border-radius: 8px; width: 170px; height: auto; margin-bottom: 18px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #B9BEC6; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #33373E; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 24px; font-size: 0.8rem; }
