/* ==========================================================================
   Trekk Mobility — shared stylesheet
   ========================================================================== */

:root {
  --bg: #FAFDFB;
  --bg-raised: #F0FBF5;
  --surface: #FFFFFF;
  --ink: #0B1220;
  --footer-bg: #0B1220;
  --accent: #12D18E;
  --accent-2: #2E6BFF;
  --accent-warm: #FFB020;
  --muted: #5B6B72;
  --dim: #8A98A0;
  --border: #E3EDE8;
  --border-strong: #D3E4DC;
  --card-grad: linear-gradient(180deg, #FFFFFF 0%, #F6FDFA 100%);
  --shadow-sm: 0 2px 10px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.12);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 6vw, 100px);
  --radius-pill: 999px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

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

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.display-xl {
  font-size: clamp(36px, 5.4vw, 84px);
  font-weight: 500;
}

.display-lg {
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 500;
}

.section-lede {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 20px);
  max-width: 560px;
}

.rule {
  border: none;
  border-top: 1px solid var(--border-strong);
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  padding: 16px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(18, 209, 142, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 209, 142, 0.38);
}

.btn-primary .arrow { transition: transform 0.15s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  padding: 14px 24px;
}

.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 253, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

.logo svg { flex-shrink: 0; }
.logo-img { height: 34px; width: auto; display: block; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a { padding: 4px 0; border-bottom: 2px solid transparent; color: var(--ink); }
.nav-links a:hover { color: var(--accent-2); }
.nav-links a[aria-current="page"] {
  color: var(--accent-2);
  font-weight: 700;
}

.nav-cta { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; align-items: center; }
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-raised, #F6FDFA);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 30px 8px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235B6B72' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.lang-select:hover { border-color: var(--accent-2); }
.lang-select:focus { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 80px;
}

.hero > .container { position: relative; z-index: 1; }

/* ---------- Cards ---------- */

.glass-card {
  background: var(--card-grad);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
  text-align: left;
}

.stat-pill .stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--accent-2);
  display: block;
  margin-bottom: 6px;
}

.stat-pill .stat-label { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: #E7EEEC;
  padding: 80px var(--gutter) 40px;
}
.site-footer .logo { color: #FFFFFF; }
.site-footer .logo-img { background: #FFFFFF; padding: 6px 10px; border-radius: 8px; }
.site-footer h4 { color: #FFFFFF; }

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 275px 1fr;
  gap: 63px;
}

.footer-brand p { color: #9AABAE; font-size: 14px; margin: 16px 0 32px; }
.footer-brand .footer-tagline { font-size: 12px; margin: -20px 0 24px; line-height: 1.6; }
.footer-brand .footer-address {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand .social-row { margin-top: 20px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 16px;
}

.footer-col p, .footer-col a {
  font-size: 15px;
  color: #9AABAE;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-offices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-subscribe { display: flex; gap: 12px; margin: 12px 0 24px; }

.footer-subscribe input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  color: #FFFFFF;
  font-family: var(--font-body);
}

.footer-subscribe input::placeholder { color: #7C8C90; }

.social-row { display: flex; gap: 14px; }

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E7EEEC;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.social-row a:hover { border-color: var(--accent); color: var(--accent); }

.footer-legal {
  max-width: 1240px;
  margin: 40px auto 0;
  color: #6E7E82;
  font-size: 13px;
}

/* ---------- Form feedback ---------- */

.form-success {
  color: var(--accent-2);
  font-weight: 600;
}

/* ---------- Utility layout ---------- */

.section { padding: 96px var(--gutter); }
.section-tight { padding: 60px var(--gutter); }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-offices { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
}

/* Mobile nav drawer */
.nav-links.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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