/* ==========================================================================
   Surokkha GPS — base.css
   Design tokens, reset, typography, buttons, layout, header, footer, mobile menu
   Figma: Project Meo Studio – Surokkha GPS Tracker – Draft 5
   Desktop frame 1440 (content 1280, gutter 80) · Mobile frame 430 (gutter 16)
   ========================================================================== */

:root {
  /* Colors (Figma variables) */
  --c-primary: #f32929;          /* Main Color */
  --c-primary-08: rgba(243, 41, 41, 0.08);
  --c-text: #363644;             /* Body Texts */
  --c-heading: #000000;          /* Titles & Heading */
  --c-navy: #0c1d38;             /* Main & Title color */
  --c-dark: #141b34;             /* Dark */
  --c-blue-900: #130c27;
  --c-gray: #6b6a70;             /* Stroke 2 - logo gray */
  --c-stroke: #dedede;           /* Stroke color */
  --c-gray-100: #dadada;
  --c-btn-gray: #e8e8e8;
  --c-white: #ffffff;
  --c-footer-bg: #0a111f;
  --c-footer-text: #b8b8bf;
  --c-footer-line: #323c50;

  /* Typography */
  --ff-bn: "Noto Sans Bengali", "Hind Siliguri", system-ui, sans-serif; /* Noto is loaded for the digits only (clear ১): other letters fall to Hind Siliguri */
  --ff-en: "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: 80px;
  --radius-pill: 100px;
  --shadow-btn: 0 14px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1200px) { :root { --gutter: 40px; } }
@media (max-width: 768px)  { :root { --gutter: 16px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-bn);
  font-size: 16px;
  line-height: 24px;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
/* Figma uses "text-box-trim: trim-both, cap / alphabetic" on every text layer.
   Matching it in CSS gives the same vertical rhythm (Chrome/Edge 133+, Safari 18.2+;
   other browsers simply fall back to normal line boxes). */
h1, h2, h3, h4, h5, h6, p, li, label, figcaption, blockquote, .tbt,
.nav__link, .btn, .footer__col-title, .eyebrow > span { text-box: trim-both cap alphabetic; }
.no-tbt { text-box: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.en { font-family: var(--ff-en); }

/* ---------- Typography scale (Figma text styles "Bangla/*") ---------- */
.t-hero { font-size: 64px; line-height: 72px; font-weight: 600; color: var(--c-heading); }
.t-h1   { font-size: 48px; line-height: 56px; font-weight: 600; color: var(--c-heading); }
.t-h3   { font-size: 32px; line-height: 40px; font-weight: 600; color: var(--c-heading); }
.t-h4   { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--c-heading); }
.t-h5   { font-size: 20px; line-height: 28px; font-weight: 500; color: var(--c-heading); }
.t-h6   { font-size: 18px; line-height: 26px; font-weight: 500; color: var(--c-heading); }
.t-b1   { font-size: 18px; line-height: 26px; font-weight: 400; }
.t-b2   { font-size: 16px; line-height: 24px; font-weight: 400; }
.t-b3   { font-size: 14px; line-height: 20px; font-weight: 400; }
.t-cap1 { font-size: 16px; line-height: 22px; font-weight: 500; }
.t-cap2 { font-size: 14px; line-height: 20px; font-weight: 600; }
.text-primary { color: var(--c-primary); }

@media (max-width: 768px) {
  .t-hero { font-size: 40px; line-height: 48px; }
  .t-h1   { font-size: 32px; line-height: 40px; }
  .t-h3   { font-size: 24px; line-height: 32px; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--ff-bn);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn img { width: 24px; height: 24px; flex: none; }
.btn--lg { height: 52px; }
.btn--primary { background: var(--c-primary); color: var(--c-white); box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: #e01f1f; }
.btn--dark { background: #000; color: var(--c-white); box-shadow: var(--shadow-btn); }
.btn--outline { background: var(--c-white); border-color: var(--c-gray); color: var(--c-text); }
.btn--outline:hover { border-color: var(--c-text); }
.btn--block { width: 100%; }

/* Section eyebrow pill (logo mark + caption) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 1000px;
  background: linear-gradient(89.84deg, rgba(243, 41, 41, 0.13) 3.35%, rgba(243, 41, 41, 0) 99.98%);
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
}
.eyebrow img { width: 16px; height: 24px; object-fit: cover; }

/* Red underline accent under headings */
.accent-bar { width: 75px; height: 4px; border-radius: 2px; background: var(--c-primary); }

/* ==========================================================================
   Header / Main navigation  (Figma 5392:1771, mobile 5485:4109)
   ========================================================================== */
.site-header { position: relative; z-index: 50; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}
.nav__logo { display: block; width: 205px; height: 49px; flex: none; }
.nav__logo img { width: 100%; height: 100%; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 16px; }
.nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px;
  border-radius: 50px;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-text);
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav__link:hover { color: var(--c-primary); }
.nav__link.is-active { background: var(--c-primary-08); color: var(--c-primary); padding-inline: 16px; border-radius: var(--radius-pill); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__icons {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  background: var(--c-gray);
}
.nav__icons a { display: block; width: 24px; height: 24px; }
.nav__icons a:hover { opacity: .8; }
.nav__icons img { width: 24px; height: 24px; }
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  background: #000;
}
.nav__toggle img { width: 24px; height: 24px; }

/* Mobile menu (Figma Menu_Expand 5497:6246) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 16px 24px;
  background: var(--c-white);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu__top { display: flex; flex-direction: column; gap: 48px; }
.mobile-menu__bar { display: flex; align-items: center; justify-content: space-between; height: 80px; padding-block: 8px; }
.mobile-menu__links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mobile-menu__links .nav__link.is-active { min-width: 72px; }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; }
.mobile-menu__actions .nav__icons { justify-content: space-between; padding-inline: 118px; width: 100%; }
body.menu-open { overflow: hidden; }

@media (max-width: 1200px) {
  .nav__links { gap: 4px; }
  .nav__actions .btn--dark span { display: none; }
  .nav__actions .btn--dark { padding: 12px; width: 48px; }
}
@media (max-width: 1024px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 768px) {
  .nav { height: auto; padding-top: 16px; }
  .mobile-menu__actions .nav__icons { padding-inline: 25%; }
}

/* ==========================================================================
   Footer  (Figma 5380:1155, mobile 5495:5616)
   ========================================================================== */
.site-footer { background: var(--c-footer-bg); color: var(--c-footer-text); padding-top: 100px; overflow: hidden; }
.footer__main { display: flex; gap: 40px; align-items: flex-start; }
.footer__brand { width: 327px; flex: none; display: flex; flex-direction: column; gap: 28px; }
.footer__logo { width: 220px; height: 45px; }
.footer__logo img { width: 100%; height: 100%; object-fit: cover; }
.footer__brand-body { display: flex; flex-direction: column; gap: 24px; }
.footer__tagline { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--c-white); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill); background: #404550;
  transition: background-color .15s ease;
}
.footer__social a:hover { background: var(--c-primary); }
.footer__social img { width: 24px; height: 24px; }

.footer__right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; align-items: stretch; }
.footer__cols { flex: 1 1 0; min-width: 0; display: flex; justify-content: space-between; padding-right: 40px; }
.footer__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.footer__col-title {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-size: 18px; line-height: 26px; font-weight: 500; color: var(--c-white); text-align: left;
  cursor: default;
}
.footer__col-title img { display: none; width: 24px; height: 24px; }
.footer__col ul { display: flex; flex-direction: column; gap: 24px; }
.footer__col a { font-size: 16px; line-height: 24px; transition: color .15s ease; }
.footer__col a:hover, .footer__col a.is-active { color: var(--c-primary); }

.footer__newsletter { width: 358px; flex: none; padding-left: 40px; border-left: 1px solid var(--c-footer-line); display: flex; flex-direction: column; gap: 32px; }
.footer__newsletter-head { display: flex; flex-direction: column; gap: 24px; }
.footer__newsletter-head p { width: 271px; max-width: 100%; }
.newsletter { display: flex; flex-direction: column; gap: 16px; }
.newsletter__field {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 48px; padding: 0 4px 0 12px; border-radius: 1000px;
  background: #141c2c; border: 1px solid #596273;
  box-shadow: 0 14px 21px rgba(0, 0, 0, 0.06);
}
.newsletter__field > img { width: 20px; height: 20px; flex: none; }
.newsletter__field input {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 14px; line-height: 20px; color: var(--c-white);
}
.newsletter__field input::placeholder { color: var(--c-stroke); }
.newsletter__field button {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--c-primary);
}
.newsletter__field button img { width: 24px; height: 24px; }
.newsletter__note { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; }
.newsletter__note img { width: 16px; height: 16px; }

.footer__contacts { display: flex; align-items: center; justify-content: space-between; padding-top: 40px; border-top: 1px solid var(--c-footer-line); }
.footer__contact { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 16px; }
.footer__contact-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none; border-radius: var(--radius-pill); background: #292f3b; }
.footer__contact-icon img { width: 28px; height: 28px; }
.footer__contact-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer__contact-label { color: var(--c-white); }
.footer__contact-value { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--c-white); white-space: nowrap; }
.footer__contact-note { font-size: 14px; line-height: 20px; }

.footer__road { position: relative; height: 240px; opacity: .8; overflow: hidden; }
.footer__road img { position: absolute; left: 50%; bottom: -38px; width: 1517px; max-width: none; height: auto; transform: translateX(-50%); }

.footer__bottom { border-top: 1px solid var(--c-footer-line); }
.footer__bottom .container { display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding-block: 28px; gap: 16px; }
.footer__copy .en { color: var(--c-footer-text); }
.footer__copy .en:first-child { color: var(--c-white); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { color: var(--c-white); }

@media (max-width: 1200px) {
  .footer__main { flex-direction: column; }
  .footer__brand { width: 100%; max-width: 520px; }
  .footer__right { width: 100%; }
}
@media (max-width: 768px) {
  .site-footer { padding-top: 48px; }
  .footer__main { gap: 32px; }
  .footer__brand { gap: 24px; }
  .footer__right { gap: 32px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__cols { flex-direction: column; padding-right: 0; gap: 24px; }
  .footer__col { gap: 0; }
  .footer__col-title { cursor: pointer; padding-bottom: 12px; border-bottom: 1px solid transparent; }
  .footer__col-title img { display: block; }
  .footer__col-title .ic-minus { display: none; }
  .footer__col.is-open .footer__col-title { border-bottom-color: var(--c-footer-line); margin-bottom: 16px; }
  .footer__col.is-open .footer__col-title .ic-plus { display: none; }
  .footer__col.is-open .footer__col-title .ic-minus { display: block; }
  .footer__col ul { display: none; gap: 16px; }
  .footer__col.is-open ul { display: flex; }
  .footer__newsletter { width: 100%; padding-left: 0; border-left: 0; gap: 24px; }
  .footer__newsletter-head { gap: 16px; }
  .footer__newsletter-head p { width: 100%; }
  .footer__contacts { flex-direction: column; align-items: stretch; gap: 24px; padding-top: 24px; }
  .footer__road { height: 120px; }
  .footer__road img { width: 760px; }
  .footer__bottom .container { flex-direction: column; justify-content: center; text-align: center; padding-block: 24px; }
}
@media (max-width: 768px) { .footer__newsletter-head br, .footer__tagline br.d-only { display: none; } .footer__newsletter-head .footer__tagline br { display: none; } .footer__brand .footer__tagline br { display: inline; } }
