/* =========================================================
   Speed-A-Way Private Limited — Modern Revamp
   Custom styles on top of Bootstrap 5.3
   Theme: dark blue (navy) surfaces + red/orange accent
   ========================================================= */

:root {
  /* ---------- Dark blue theme ---------- */
  --primary-dark: #050f22;
  --primary: #0b2a5b;
  --logo-navy: #24305c;   /* sampled from the company logo */
  --primary-grad: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  --white: #ffffff;

  /* ---------- Accent ---------- */
  --brand: #e11d2e;
  --brand-2: #ff6a3d;
  --brand-grad: linear-gradient(120deg, #e11d2e 0%, #ff6a3d 100%);

  /* ---------- Neutrals ---------- */
  --ink: #0e1116;
  --ink-2: #161b22;
  --body: #5a6472;
  --line: #e7eaef;
  --bg-soft: #f6f8fb;

  /* ---------- Tokens ---------- */
  --radius: 18px;
  --shadow-sm: 0 4px 16px rgba(14, 17, 22, .06);
  --shadow-md: 0 18px 45px rgba(14, 17, 22, .10);
  --shadow-lg: 0 30px 70px rgba(14, 17, 22, .16);
  --nav-h: 76px;
}

[data-bs-theme="dark"] {
  --ink: #f5f7fa;
  --ink-2: #08152e;
  --body: #9aa4b2;
  --line: #1b2c4a;
  --bg-soft: #050f22;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[data-bs-theme="dark"] body { background: var(--primary-dark); }

h1, h2, h3, h4, h5, h6, .brand-name {
  font-family: 'Barlow', sans-serif;
  color: var(--ink);
  letter-spacing: -.01em;
}
a { text-decoration: none; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Helpers ---------- */
.section { padding: 25px 0; background-color: #e8eaec;}
.section-alt { background: var(--bg-soft); }
.section-dark {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .75rem;
}
.eyebrow-light { color: var(--brand-2); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.section-sub { max-width: 620px; margin: 0 auto; color: var(--body); }
.text-brand { color: var(--brand); }
.text-gradient { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; transition: all .25s ease; }
.btn-brand {
  background: var(--brand-grad); color: #fff; border: none;
  box-shadow: 0 10px 24px rgba(225, 29, 46, .32);
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(225, 29, 46, .42); }
.btn-outline-light { border-width: 1.5px; }
.btn-outline-light:hover { transform: translateY(-2px); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* =========================================================
   NAVBAR
   ========================================================= */
#mainNav {
  padding: .55rem 0; transition: all .35s ease; background: transparent; min-height: var(--nav-h);
}
#mainNav.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
}
[data-bs-theme="dark"] #mainNav.scrolled { background: rgba(5, 15, 34, .88); }

#mainNav .nav-link {
  color: rgba(255,255,255,.85); font-weight: 500; font-size: .90rem;
  padding: .3rem .50rem !important; position: relative;
}
#mainNav .nav-link::after {
  content: ''; position: absolute; left: .90rem; right: .90rem; bottom: .25rem; height: 2px;
  background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: #fff; }
#mainNav .nav-link:hover::after, #mainNav .nav-link.active::after { transform: scaleX(1); }
#mainNav.scrolled .nav-link { color: var(--ink); }
#mainNav.scrolled .nav-link:hover, #mainNav.scrolled .nav-link.active { color: var(--brand); }
[data-bs-theme="dark"] #mainNav.scrolled .nav-link { color: #e7eaef; }
[data-bs-theme="dark"] #mainNav.scrolled .nav-link:hover,
[data-bs-theme="dark"] #mainNav.scrolled .nav-link.active { color: var(--brand-2); }
#mainNav.scrolled .btn-ghost { color: var(--ink); border-color: var(--line); }
[data-bs-theme="dark"] #mainNav.scrolled .btn-ghost { color: #fff; }

/* ---------- Logo lockup (mark + Bodoni Std italic wordmark) ---------- */
.brand-mark {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 12px;
  background: #fff; color: var(--logo-navy);
  box-shadow: 0 6px 18px rgba(5, 15, 34, .28);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.brand-mark svg { width: 26px; height: 26px; display: block; }

.brand-text {
  display: flex; flex-direction: column; line-height: 1;
  flex: 1; min-width: 0;
}
.brand-name {
  font-family: 'Bodoni Std', 'Bodoni MT', Didot, 'Didot LT STD', 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 730;
  font-style: italic;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.brand-sub {
  font-family: 'Bodoni Std', 'Bodoni MT', Didot, 'Times New Roman', serif;
  font-style: italic; font-weight: 700; text-transform: uppercase;
  font-size: .70rem; letter-spacing: 2px;
  color: rgba(255,255,255,.72); margin-top: 4px;
}
#mainNav.scrolled .brand-name { color: var(--logo-navy); }
#mainNav.scrolled .brand-sub { color: var(--body); }
#mainNav.scrolled .brand-mark { border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(5, 15, 34, .14); }
[data-bs-theme="dark"] #mainNav.scrolled .brand-name { color: #fff; }
#mainNav.scrolled .brand-sub { color: var(--body); }
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:48px}

dl.regions{border-top:1px solid var(--line)}
dl.regions div{display:grid;grid-template-columns:180px 1fr;gap:14px;padding:8px 0;border-bottom:1px solid var(--line)}
dl.regions dt{font-weight:500}
dl.regions dd{color:var(--steel)}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; padding: calc(var(--nav-h) + 70px) 0 130px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white); overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}
.hero-glow {
  position: absolute; width: 620px; height: 620px; right: -140px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,46,.55) 0%, rgba(255,106,61,.18) 45%, transparent 70%);
  filter: blur(20px); opacity: .85; animation: float 12s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(28px) } }

.badge-pill {
  display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: 100px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-size: .82rem; font-weight: 600; margin-bottom: 1.5rem;
}
.badge-pill i { color: var(--brand-2); }
.hero-title { font-size: clamp(2.1rem, 5.5vw, 3.5rem); font-weight: 800; line-height: 1.08; color: #fff; margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.08rem; color: rgba(255,255,255,.78); max-width: 620px; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 3rem; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { color: #fff; font-family: 'Barlow', sans-serif; font-size: 1.05rem; letter-spacing: .02em; }
.hero-trust span { font-size: .78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; }

.hero-card {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px; padding: 1.75rem; backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
.hero-card-head { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-card-head i { font-size: 1.6rem; color: var(--brand-2); }
.hero-card-head h3 { color: #fff; font-size: 1.1rem; margin: 0 0 .25rem; }
.hero-card-head p { color: rgba(255,255,255,.65); font-size: .85rem; margin: 0; }
.hero-card-list { list-style: none; margin: 1.2rem 0; padding: 0; }
.hero-card-list li { display: flex; align-items: center; gap: .85rem; color: rgba(255,255,255,.88); font-size: .92rem; padding: .5rem 0; }
.hero-card-list li i { color: var(--brand-2); width: 18px; }
.hero-card-foot { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: rgba(255,255,255,.7); padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.hero-marquee { position: absolute; bottom: 0; left: 0; right: 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.1); padding: .7rem 0; background: rgba(255,255,255,.025); }
.marquee-track { display: flex; gap: 2.5rem; white-space: nowrap; animation: scrollX 26s linear infinite; }
.marquee-track span { font-family: 'Barlow', sans-serif; font-weight: 700; letter-spacing: .3em; font-size: .8rem; color: rgba(255,255,255,.4); text-transform: uppercase; }
@keyframes scrollX { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* =========================================================
   STATS
   ========================================================= */
.stats-strip { margin-top: -62px; position: relative; z-index: 5;     background-color: #ebecec;}
.stat {
  background: #fff; border-radius: var(--radius); padding: 2rem 1rem; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); height: 100%; transition: transform .3s ease, box-shadow .3s ease;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
[data-bs-theme="dark"] .stat { background: var(--ink-2); }
.stat-value { font-family: 'Barlow', sans-serif; font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; color: var(--ink); line-height: 1; }
.stat-value .plus { color: var(--brand); font-size: .7em; }
.stat-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--body); margin-top: .6rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.feature-mini { display: flex; gap: .9rem; align-items: flex-start; background: var(--bg-soft); border-radius: 14px; padding: 1rem; height: 100%; }
[data-bs-theme="dark"] .feature-mini { background: var(--ink-2); }
.feature-mini i { font-size: 1.3rem; color: var(--brand); }
.feature-mini h6 { margin: 0 0 .15rem; font-size: .98rem; }
.feature-mini p { margin: 0; font-size: .85rem; }

.about-visual {
  position: relative;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 24px; padding: 2.5rem; color: var(--white);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.about-visual::before { content: ''; position: absolute; width: 320px; height: 320px; right: -100px; bottom: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(225,29,46,.5), transparent 70%); }
.about-quote { position: relative; }
.about-quote i { font-size: 3rem; color: var(--brand-2); }
.about-quote p { font-family: 'Barlow', sans-serif; font-size: 1.3rem; font-weight: 600; color: #fff; line-height: 1.4; }
.about-founder { position: relative; display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.16); }
.founder-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); font-weight: 700; color: #fff; font-family: 'Barlow', sans-serif; flex: 0 0 auto; }
.about-founder h6 { color: #fff; margin: 0; font-size: 1rem; }
.about-founder span { font-size: .8rem; color: rgba(255,255,255,.65); }

/* =========================================================
   PRODUCTS
   ========================================================= */
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  height: 100%; transition: all .3s ease; position: relative; overflow: hidden;
}
[data-bs-theme="dark"] .product-card { background: var(--ink-2); }
.product-card::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-card:hover::after { transform: scaleX(1); }
.product-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(225,29,46,.12), rgba(255,106,61,.12)); color: var(--brand); margin-bottom: 1.1rem;
  transition: all .3s ease;
}
.proddiv {
    display: flex;
    justify-content: center;

}
.products {
  display:flex;
  width: 150px;  border-radius: 16px; display: grid; align-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(225,29,46,.12), rgba(255,106,61,.12)); color: var(--brand); margin-bottom: 1.1rem;
  transition: all .3s ease;
}

.product-card:hover .product-icon { background: var(--brand-grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.product-card h5 { font-size: 1.1rem; margin-bottom: .5rem; }
.product-card p { font-size: .9rem; margin-bottom: 1rem; }
.product-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: rgba(225,29,46,.08); padding: .3rem .7rem; border-radius: 100px; }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--brand), var(--brand-2), transparent); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 3rem 2.5rem 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.5rem 3rem; }
.tl-dot { position: absolute; top: 6px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(225,29,46,.18); }
[data-bs-theme="dark"] .tl-dot { border-color: var(--primary-dark); }
.tl-item:nth-child(even) .tl-dot { right: auto; left: -9px; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
[data-bs-theme="dark"] .tl-card { background: var(--ink-2); }
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tl-year { display: inline-block; font-family: 'Barlow', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--brand); margin-bottom: .4rem; }
.tl-card h5 { font-size: 1.05rem; margin-bottom: .4rem; }
.tl-card p { font-size: .9rem; margin: 0; }

/* =========================================================
   GROUP
   ========================================================= */
.group-search { position: relative; }
.group-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.5); }
.group-search .form-control {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff;
  padding: .75rem 1rem .75rem 2.6rem; border-radius: 12px;
}
.group-search .form-control::placeholder { color: rgba(255,255,255,.5); }
.group-search .form-control:focus { background: rgba(255,255,255,.1); border-color: var(--brand-2); box-shadow: 0 0 0 .2rem rgba(255,106,61,.2); color: #fff; }

.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.group-item {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.85); font-size: .84rem; transition: all .22s ease;
}
.group-item:hover { background: rgba(225,29,46,.18); border-color: rgba(225,29,46,.45); color: #fff; transform: translateY(-2px); }
.group-item i { color: var(--brand-2); font-size: .75rem; }
.group-item.self { background: var(--brand-grad); border-color: transparent; color: #fff; font-weight: 600; }
.group-item.self i { color: #fff; }
.group-item.hide { display: none; }

/* =========================================================
   MEDIA
   ========================================================= */
.media-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .3s ease, box-shadow .3s ease; }
[data-bs-theme="dark"] .media-card { background: var(--ink-2); }
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.media-thumb {
  height: auto; display: grid; place-items: center; font-size: 2.6rem; color: var(--white);padding:5px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-bottom: 3px solid var(--brand);
}
.media-body { padding: 1.5rem; }
.media-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.media-body h5 { margin: .5rem 0 .6rem; font-size: 1.1rem; }
.media-body p { font-size: .9rem; }
.link-arrow { font-weight: 600; color: var(--brand); font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow:hover { color: var(--brand-2); gap: .6rem; }
.link-arrow i { transition: all .25s ease; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list .ci { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: rgba(225,29,46,.1); color: var(--brand); font-size: 1.1rem; }
.contact-list strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-list p { margin: 0; font-size: .9rem; }
.contact-list a { color: var(--brand); }
.contact-list a:hover { text-decoration: underline; }

.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2.25rem; box-shadow: var(--shadow-md); }
[data-bs-theme="dark"] .contact-form-card { background: var(--ink-2); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.form-control, .form-select { border-radius: 12px; padding: .7rem .95rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(225,29,46,.15); }
.form-status { font-size: .9rem; font-weight: 600; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: var(--brand); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: rgba(255,255,255,.72); padding: 70px 0 30px;
}
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; }
.footer-brand .brand-name { color: #fff; }
.footer-about { font-size: .9rem; max-width: 340px; }
.footer-head { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .65rem; font-size: .9rem; }
.footer-links a { color: rgba(255,255,255,.72); transition: color .2s ease, padding-left .2s ease; }
.footer-links a:hover { color: var(--brand-2); padding-left: 4px; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact i { color: var(--brand-2); margin-top: .2rem; }
.footer-divider { border-color: rgba(255,255,255,.14); margin: 2.5rem 0 1.5rem; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--brand-grad); color: #fff; font-size: 1.1rem; box-shadow: 0 10px 26px rgba(225,29,46,.4);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .3s ease; z-index: 1000;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .marquee-track, .pulse-dot { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 110px; }
  .hero-trust { gap: 1.5rem; margin-top: 2rem; }
  #mainNav .navbar-collapse {
    background: var(--primary-dark); border-radius: 16px; padding: 1rem; margin-top: .75rem;
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1);
  }
  #mainNav.scrolled .navbar-collapse { background: #fff; border-color: var(--line); }
  [data-bs-theme="dark"] #mainNav.scrolled .navbar-collapse { background: var(--ink-2); }
  #mainNav .nav-link { color: rgba(255,255,255,.9) !important; }
  #mainNav.scrolled .nav-link { color: var(--ink) !important; }
  [data-bs-theme="dark"] #mainNav.scrolled .nav-link { color: #e7eaef !important; }
  #mainNav .nav-link::after { display: none; }
  .btn-ghost { border-color: rgba(255,255,255,.3); }
  #mainNav.scrolled .btn-ghost { border-color: var(--line); }

  .timeline::before { left: 9px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 1.8rem 2.5rem; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 0; right: auto; }
}

@media (max-width: 575.98px) {
  .section { padding: 58px 0; }
  .stat { padding: 1.4rem .6rem; }
  .stat-label { font-size: .7rem; letter-spacing: .08em; }
  .contact-form-card, .about-visual { padding: 1.5rem; }
  .hero-trust { gap: 1.2rem 1.6rem; }
  .hero-trust strong { font-size: .95rem; }
  .group-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 23px; letter-spacing: 1px; padding-top:7px; }
  .brand-sub { font-size: .62rem; letter-spacing: 1.6px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark svg { width: 22px; height: 22px; }
}
@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 auto;
        width: 20%;
    }
}
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 25%;
    }
}

/* =========================================================
   MOBILE & TABLET FIXES
   Everything layout-related below sits inside max-width media
   queries, so the desktop (>= 992px) layout is unchanged.
   ========================================================= */

/* ---- Safe on every screen: stop images overflowing their cards ---- */
img { max-width: 100%; }
.hero-card img, .media-thumb img, .network-map { max-width: 100%; height: auto; }
.founder-avatar { object-fit: cover; }
.group-item span { min-width: 0; overflow-wrap: anywhere; }
.contact-list a, .footer-links a { overflow-wrap: anywhere; }

/* ---- Hamburger icon was white-on-white once the bar turns light ---- */
#mainNav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255, 106, 61, .35); }
#mainNav.scrolled .navbar-toggler-icon { filter: invert(1); }
[data-bs-theme="dark"] #mainNav.scrolled .navbar-toggler-icon { filter: none; }

/* ---- If dark theme is ever switched on, the grey sections must follow ---- */
[data-bs-theme="dark"] .section,
[data-bs-theme="dark"] .stats-strip { background-color: var(--primary-dark); }

/* ---- Small laptops / iPad landscape: keep all 10 menu items on one row ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #mainNav .nav-link { font-size: .84rem; padding: .3rem .4rem !important; white-space: nowrap; }
  .brand-name { font-size: 18px; letter-spacing: 1.1px; }
}

/* ---- Tablets and below (hamburger menu) ---- */
@media (max-width: 991.98px) {
  /* Bootstrap's g-5 gutter (3rem) is wider than the container padding and
     pushes rows past the screen edge. */
  .g-5, .gx-5 { --bs-gutter-x: 1.5rem; }
  .g-5, .gy-5 { --bs-gutter-y: 2.25rem; }

  /* Long menu: scroll inside the dropdown instead of running off-screen */
  #mainNav .navbar-collapse {
    max-height: calc(100vh - var(--nav-h) - 16px);
    max-height: calc(100dvh - var(--nav-h) - 16px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  /* Finger-sized tap targets */
  #mainNav .nav-link { padding: .75rem .75rem !important; }
}

/* ---- Large phones / small tablets ---- */
@media (max-width: 767.98px) {
  .hero-lead { font-size: 1rem; }

  /* The long "website is being updated" pill looked broken when it wrapped */
  .badge-pill {
    display: flex; align-items: center; gap: .5rem; width: 100%;
    border-radius: 14px; padding: .65rem .9rem; margin-bottom: 1rem;
    font-size: .8rem; line-height: 1.45;
  }

  /* Network section: region list gets a narrower label column */
  dl.regions div { grid-template-columns: 150px 1fr; }

  /* Form: button and status message on their own lines */
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 100%; }
  .form-actions .form-status { flex: 1 1 100%; text-align: center; }
}

/* ---- Phones ---- */
@media (max-width: 575.98px) {
  .hero { padding-bottom: 100px; }
  .hero-title { font-size: 1.9rem; }
  .hero-title br { display: none; }                  /* let the headline flow naturally */
  .hero-title .text-gradient { display: block; }
  .hero-glow { width: 360px; height: 360px; right: -120px; top: -120px; }
  .hero .btn-lg { width: 100%; }                     /* full-width, easy-to-tap buttons */
  .hero-card { padding: 1.25rem; }
  .hero-card-head h3 { font-size: 1rem; }
  .product-card { padding: 1.25rem; }
  .tl-card, .media-body { padding: 1.15rem; }
  .about-quote p { font-size: 1.15rem; }
  dl.regions div { grid-template-columns: 1fr auto; }
  .to-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- Very small phones (320-359px) ---- */
@media (max-width: 359.98px) {
  .brand-name { font-size: 15px; letter-spacing: .6px; }
  .hero-title { font-size: 1.7rem; }
  .stat-label { font-size: .64rem; letter-spacing: .05em; }
}
