:root{
  --red:#d61f26;
  --red2:#b3151b;
  --black:#0b0f16;
  --black2:#101827;
  --white:#ffffff;
  --muted:#c7cfdb;
  --muted2:#94a3b8;
  --border:rgba(255,255,255,.12);
  --glass:rgba(10,15,22,.55);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow2: 0 14px 44px rgba(0,0,0,.25);
  --radius:18px;
  --max:1180px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--white);
  background: radial-gradient(1200px 700px at 70% 10%, rgba(214,31,38,.35), transparent 55%),
              radial-gradient(900px 600px at 20% 50%, rgba(214,31,38,.18), transparent 60%),
              linear-gradient(180deg, #060a10 0%, #070b12 40%, #05070c 100%);
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.nav{
  position:sticky; top:0; z-index:50;
  background: linear-gradient(180deg, rgba(5,7,12,.92), rgba(5,7,12,.70));
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav__inner{
  display:flex; align-items:center; justify-content:space-between;
  height:74px;
}
.brand{
  display:flex; align-items:center; gap:12px; font-weight:900; letter-spacing:.5px;
}
.brand__logo{
  font-size:26px;
  color:var(--red);
}
.nav__links{
  display:flex; align-items:center; gap:26px;
  color:rgba(255,255,255,.85);
  font-weight:600;
}
.nav__links a{opacity:.9}
.nav__links a:hover{opacity:1}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:44px; padding:0 18px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--white);
  font-weight:800;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.25)}
.btn--red{
  background: linear-gradient(180deg, var(--red), var(--red2));
  border-color: rgba(255,255,255,.08);
}
.btn--dark{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
}
.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.20);
}
.btn--sm{height:40px; padding:0 16px; border-radius:12px}

.hero{
  position:relative;
  padding:38px 0 10px;
}
.hero__wrap{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  min-height: 430px;
  background:
    linear-gradient(100deg, rgba(5,7,12,.88) 10%, rgba(5,7,12,.55) 45%, rgba(214,31,38,.20) 100%),
    url("/assets/img/hero.jpg") center/cover no-repeat;
}
.hero__content{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:20px;
  align-items:center;
  padding:54px 42px;
}
.hero__title{
  margin:0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height:1.05;
  letter-spacing:-.5px;
}
.hero__title span{color:var(--white)}
.hero__sub{
  margin:0 0 18px;
  color:rgba(255,255,255,.86);
  font-size:16px;
  max-width:520px;
}
.hero__actions{display:flex; gap:14px; flex-wrap:wrap; margin-top:14px}
.hero__hint{
  margin-top:16px;
  display:flex; gap:10px; align-items:center;
  color:rgba(255,255,255,.75);
  font-size:13px;
}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}
.pill__dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(214,31,38,.18);
}

.section{
  padding:34px 0 0;
}
.section__title{
  text-align:center;
  margin:26px 0 10px;
  font-size: 28px;
  letter-spacing:-.3px;
}
.section__line{
  width:100%;
  max-width: 780px;
  margin: 0 auto 18px;
  border-top:1px solid rgba(255,255,255,.10);
}

.about{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  box-shadow: var(--shadow2);
  padding:22px 20px;
}
.about p{
  margin:0;
  color:rgba(255,255,255,.82);
  line-height:1.7;
  text-align:center;
  max-width:880px;
  margin:0 auto;
}

.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.card{
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow2);
}
.card__img{
  height:190px;
  background:#111;
  position:relative;
}
.card__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}
.card__img::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}
.card__body{
  padding:18px 18px 20px;
}
.card__title{
  margin:0 0 8px;
  font-size:22px;
}
.card__text{
  margin:0 0 14px;
  color:rgba(255,255,255,.80);
  line-height:1.6;
}
.card__actions{display:flex; gap:12px; flex-wrap:wrap}
.card--dark{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size:12px;
  color:rgba(255,255,255,.86);
  font-weight:800;
}

.why{
  margin-top:22px;
  padding:18px 18px 10px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.why__grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap:14px;
  padding:10px 0 6px;
}
.why__item{
  text-align:center;
  padding:10px 10px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.icon{
  width:46px; height:46px;
  display:grid; place-items:center;
  margin:0 auto 8px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  font-size:22px;
}
.why__label{
  font-weight:800;
  font-size:13px;
  color:rgba(255,255,255,.88);
}

.cta{
  margin:26px 0 18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(214,31,38,.35), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow2);
  padding:26px 20px;
  text-align:center;
}
.cta h3{
  margin:0 0 8px;
  font-size:32px;
  letter-spacing:-.4px;
}
.cta p{
  margin:0 0 16px;
  color:rgba(255,255,255,.82);
}

.footer{
  border-top:1px solid rgba(255,255,255,.08);
  padding:18px 0 26px;
  color:rgba(255,255,255,.70);
  font-size:13px;
}
.footer__inner{
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}
.footer__links{display:flex; gap:14px; flex-wrap:wrap}
.footer__links a{opacity:.9}
.footer__links a:hover{opacity:1}

@media (max-width: 980px){
  .hero__content{grid-template-columns:1fr; padding:42px 22px}
  .cards{grid-template-columns:1fr}
  .why__grid{grid-template-columns: repeat(2, minmax(0,1fr))}
}
@media (max-width: 420px){
  .nav__links{display:none}
  .cta h3{font-size:26px}
}

/* Top bar */
.topbar{
  background: rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar__inner{
  height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:rgba(255,255,255,.78);
  font-size:12px;
}
.topbar__left{display:flex; gap:14px; flex-wrap:wrap; align-items:center}
.topbar__right{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.kbadge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-weight:800;
}

/* Modal */
.modal{
  position:fixed; inset:0; z-index:80;
  display:none;
}
.modal.is-open{display:block}
.modal__overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
}
.modal__panel{
  position:relative;
  width:min(860px, calc(100% - 26px));
  margin: 70px auto;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(12,16,24,.92), rgba(10,12,18,.92));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.modal__title{
  display:flex; gap:10px; align-items:center;
  font-weight:900;
}
.modal__close{
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--white);
  cursor:pointer;
  font-size:18px;
}
.modal__body{padding:16px 18px 18px}

.tabs{
  display:flex; gap:10px; flex-wrap:wrap;
  padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.tab{
  height:40px; padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:rgba(255,255,255,.90);
  font-weight:900;
  cursor:pointer;
}
.tab.is-active{
  background: linear-gradient(180deg, var(--red), var(--red2));
  border-color: rgba(255,255,255,.10);
}

.formgrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
  padding-top:14px;
}
.field label{
  display:block;
  font-size:12px;
  color:rgba(255,255,255,.78);
  margin-bottom:6px;
  font-weight:800;
}
.input, .select, .textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--white);
  padding:12px 12px;
  outline:none;
}
.textarea{min-height: 94px; resize: vertical}
.form__actions{
  display:flex; gap:12px; align-items:center; justify-content:flex-end;
  margin-top:14px; flex-wrap:wrap;
}
.note{
  margin-top:10px;
  color:rgba(255,255,255,.70);
  font-size:12px;
  line-height:1.5;
}

@media (max-width: 780px){
  .formgrid{grid-template-columns:1fr}
}

.logo-img{
  height:42px;
  width:auto;
  display:block;
}

/* Logo badge container */
.logo-badge{
  background: rgba(255,255,255,.92);
  padding:8px 14px;
  border-radius:14px;
  display:flex;
  align-items:center;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  border:1px solid rgba(255,255,255,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}

.logo-badge:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}

/* Logo badge container (final) */
.logo-badge{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
  padding:8px 14px;
  border-radius:14px;
  display:flex;
  align-items:center;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  border:1px solid rgba(255,255,255,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}

.logo-badge:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}

.logo-img{
  height:28px;
  width:auto;
  display:block;
}

.logo-badge{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
}

/* Center marquee message */
.topbar__center{
  flex:1;
  display:flex;
  justify-content:center;
  overflow:hidden;
}

.marquee{
  position:relative;
  white-space:nowrap;
  overflow:hidden;
  max-width:420px;
}

.marquee span{
  display:inline-block;
  padding-left:100%;
  animation: scrollText 18s linear infinite;
  font-weight:700;
  color:rgba(255,255,255,.9);
}

/* Smooth slow scroll */
@keyframes scrollText{
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Branches panel animation (amazing modern feel) */
.branches__panel{
  transform: translateY(18px) scale(.98);
  opacity:0;
  transition: transform .35s ease, opacity .35s ease;
}

.modal.is-open .branches__panel{
  transform: translateY(0) scale(1);
  opacity:1;
}

/* Extra glow accent */
.branches__panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:24px;
  background: radial-gradient(420px 180px at 50% 0%, rgba(214,31,38,.28), transparent 65%);
  pointer-events:none;
  z-index:0;
}

.branches__panel .modal__head,
.branches__panel .modal__body{
  position:relative;
  z-index:1;
}

.branches__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}

.branch-card{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding:14px 14px 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease;
}

.branch-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
}

.branch-top{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:10px;
}

.branch-icon{
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  font-size:20px;
}

.branch-title{
  font-weight:900;
  letter-spacing:.2px;
}

.branch-sub{
  margin-top:2px;
  font-size:12px;
  color: rgba(255,255,255,.72);
  font-weight:700;
}

.branch-line{
  color: rgba(255,255,255,.84);
  line-height:1.55;
  font-size:13px;
  margin-bottom:10px;
}

.branch-meta{
  color: rgba(255,255,255,.70);
  font-size:12px;
  line-height:1.6;
}

@media (max-width: 980px){
  .branches__grid{grid-template-columns:1fr}
}

/* Inquiry advert-style panel animation */
.inquiry__panel{
  transform: translateY(22px) scale(.97);
  opacity:0;
  transition: transform .35s ease, opacity .35s ease;
}

.modal.is-open .inquiry__panel{
  transform: translateY(0) scale(1);
  opacity:1;
}

/* Glow header like an advert */
.inquiry__panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:24px;
  background: radial-gradient(520px 220px at 50% 0%, rgba(214,31,38,.32), transparent 65%);
  pointer-events:none;
  z-index:0;
}

.inquiry__panel .modal__head,
.inquiry__panel .modal__body{
  position:relative;
  z-index:1;
}

.inquiry__intro{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
  margin-bottom:14px;
  line-height:1.5;
}

.footer-credit{
  margin-left:6px;
  font-size:12px;
  color: rgba(255,255,255,.65);
}

.footer-credit a{
  color: rgba(255,255,255,.85);
  text-decoration:none;
  transition: color .2s ease, opacity .2s ease;
}

.footer-credit a:hover{
  color:#fff;
  opacity:1;
}

.footer-credit strong{
  font-weight:200;
}

/* Floating AI Chat */
.chat-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  width:58px;
  height:58px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, var(--red), var(--red2));
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:90;
  transition: transform .18s ease, box-shadow .18s ease;
}
.chat-fab:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
}
.chat-fab span{font-size:22px}

.chat-panel{
  position:fixed;
  right:18px;
  bottom:88px;
  width:min(360px, calc(100% - 36px));
  height:520px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(12,16,24,.94), rgba(10,12,18,.94));
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  overflow:hidden;
  z-index:90;

  transform: translateY(16px) scale(.98);
  opacity:0;
  pointer-events:none;
  transition: transform .28s ease, opacity .28s ease;
}
.chat-panel.is-open{
  transform: translateY(0) scale(1);
  opacity:1;
  pointer-events:auto;
}

.chat-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: radial-gradient(520px 220px at 50% 0%, rgba(214,31,38,.25), transparent 60%);
}
.chat-title{
  display:flex;
  gap:10px;
  align-items:center;
}
.chat-avatar{
  width:40px;height:40px;
  border-radius:14px;
  display:grid;place-items:center;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.chat-name{font-weight:900; line-height:1.05}
.chat-sub{font-size:12px; color: rgba(255,255,255,.70); font-weight:700}

.chat-close{
  width:40px;height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  font-size:18px;
}

.chat-body{
  height: calc(520px - 64px - 70px);
  padding:14px;
  overflow:auto;
}

.msg{
  display:flex;
  margin:10px 0;
}
.msg.bot{justify-content:flex-start}
.msg.user{justify-content:flex-end}

.bubble{
  max-width: 80%;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  line-height:1.45;
  font-size:13px;
}
.msg.user .bubble{
  background: linear-gradient(180deg, rgba(214,31,38,.96), rgba(179,21,27,.96));
  border-color: rgba(255,255,255,.08);
  color:#fff;
}

.chat-foot{
  border-top:1px solid rgba(255,255,255,.10);
  padding:10px;
  background: rgba(255,255,255,.03);
}
.chat-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.chat-input{
  flex:1;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:#fff;
  padding:0 12px;
  outline:none;
}
.chat-send{
  height:46px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.chat-send:hover{border-color: rgba(255,255,255,.22)}

.chat-note{
  margin-top:8px;
  font-size:11px;
  color: rgba(255,255,255,.62);
  line-height:1.45;
}

/* Rounded menu capsule like Afriwex */
/* Rounded menu capsule with glow */
.nav-pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  display:flex;
  align-items:center;

  /* Glow + shadow */
  box-shadow:
    0 0 0 1px rgba(214,31,38,.25),
    0 10px 26px rgba(0,0,0,.35),
    0 0 18px rgba(214,31,38,.25),
    inset 0 1px 0 rgba(255,255,255,.06);

  display:flex;
  align-items:center;
}

/* Improve spacing inside capsule */
.nav-pill .nav__links{
  gap:20px;
}

/* Subtle hover highlight */
.nav-pill a{
  /* padding:8px 14px; */
  padding:4px 8px;
  border-radius:999px;
  transition: background .2s ease, color .2s ease;
}

.nav-pill a{
  padding:8px 14px;
  border-radius:999px;
  transition: background .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease;
}

/* Light red glow hover */
.nav-pill a:hover{
  background: rgba(214,31,38,.12);
  color:#fff;
  transform: translateY(-1px);
  border:1px solid rgba(214,31,38,.25);
  box-shadow: 0 0 10px rgba(214,31,38,.20);
}

/* =========================
   MOBILE APP MODE (SAFE PATCH)
   Paste at the very bottom
========================= */
@media (max-width: 980px){

  /* Hide topbar + header menu on mobile (use bottom nav like app) */
  .topbar{ display:none !important; }
  .nav{ display:none !important; }

  /* Make layout tighter like an app screen */
  .container{ padding: 0 14px !important; }

  .hero{ padding: 18px 0 8px !important; }
  .hero__wrap{ min-height: 320px !important; border-radius: 18px !important; }
  .hero__content{
    grid-template-columns: 1fr !important;
    padding: 22px 18px !important;
  }
  .hero__title{ font-size: 32px !important; }
  .hero__sub{ font-size: 14px !important; }

  .hero__actions .btn{
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
  }

  .section{ padding: 22px 0 0 !important; }
  .section__title{ font-size: 22px !important; margin: 18px 0 10px !important; }

  .cards{ grid-template-columns: 1fr !important; gap: 14px !important; margin-top: 14px !important; }
  .card{ border-radius: 18px !important; }
  .card__img{ height: 170px !important; }
  .card__title{ font-size: 18px !important; }

  .why{ padding: 14px 14px 8px !important; border-radius: 18px !important; }
  .why__grid{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 12px !important; }
  .icon{ width: 42px !important; height: 42px !important; }

  .cta{ padding: 18px 14px !important; border-radius: 18px !important; }
  .cta h3{ font-size: 22px !important; }

  /* Add space for bottom navigation bar */
  body{ padding-bottom: 96px !important; }

  /* Chat on mobile: hide floating icon (use bottom nav button) */
  .chat-fab{ display:none !important; }
  .chat-panel{ right:12px !important; bottom:96px !important; }

  /* If you later show header on mobile, prevent huge logo */
  .logo-img{ height: 30px !important; width: auto !important; }
  .logo-badge{ padding: 6px 10px !important; }
}

/* =========================
   MOBILE BRAND TOP PILL
========================= */
.mbrand{
  display:none;
}

@media (max-width: 980px){

  .mbrand{
    display:flex;
    justify-content:center;
    align-items:center;
    padding: 10px 0 6px;
  }

  .mbrand__pill{
    padding:6px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(8px);
    /* box-shadow: 0 8px 24px rgba(0,0,0,.35); */
    box-shadow: 0 0 12px rgba(214,31,38,.25), 0 8px 24px rgba(0,0,0,.35);
    display:flex;
    align-items:center;
  }

  .mbrand__logo{
    height:26px;
    width:auto;
    display:block;
  }

}

/* =========================
   MOBILE UI POLISH PACK
   Paste at the VERY BOTTOM
========================= */

@media (max-width: 980px){

  /* App mode: hide desktop header/topbar */
  .topbar{ display:none !important; }
  .nav{ display:none !important; }

  /* Safer padding like app */
  .container{ padding: 0 14px !important; }

  /* Make sections feel like app cards */
  .section{ padding: 18px 0 0 !important; }
  .section__title{ font-size: 20px !important; margin: 14px 0 10px !important; }
  .section__line{ margin-bottom: 14px !important; }

  /* Hero: compact, app-like */
  .hero{ padding: 10px 0 8px !important; }
  .hero__wrap{
    min-height: 310px !important;
    border-radius: 18px !important;
  }
  .hero__content{
    grid-template-columns: 1fr !important;
    padding: 18px 16px !important;
    gap: 12px !important;
  }
  .hero__title{ font-size: 30px !important; }
  .hero__sub{ font-size: 13.5px !important; }

  /* Buttons fit */
  .hero__actions{
    gap:10px !important;
  }
  .btn{
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
  }

  /* Cards: tighter + smoother */
  .cards{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 12px !important;
  }
  .card{
    border-radius: 18px !important;
  }
  .card__img{ height: 165px !important; }
  .card__title{ font-size: 18px !important; }
  .card__text{ font-size: 13px !important; }

  /* Why choose: 2 columns compact */
  .why{
    margin-top: 14px !important;
    padding: 12px 12px 6px !important;
    border-radius: 18px !important;
  }
  .why__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .why__item{ border-radius: 16px !important; padding: 10px 10px !important; }
  .icon{ width: 40px !important; height: 40px !important; border-radius: 14px !important; font-size: 20px !important; }

  /* CTA: compact */
  .cta{
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }
  .cta h3{ font-size: 22px !important; }
  .cta p{ font-size: 13px !important; }

  /* Reserve space for bottom nav */
  body{ padding-bottom: 92px !important; }

  /* Modals behave like mobile sheets */
  .modal__panel{
    width: min(520px, calc(100% - 18px)) !important;
    margin: 56px auto !important;
    border-radius: 18px !important;
  }

  /* Chat: hide floating bubble (use bottom nav button) */
  .chat-fab{ display:none !important; }
  .chat-panel{
    right: 12px !important;
    bottom: 92px !important;
    width: min(420px, calc(100% - 24px)) !important;
    height: 520px !important;
    border-radius: 18px !important;
  }
}

/* =========================
   MOBILE BRAND TOP PILL
========================= */
.mbrand{ display:none; }
@media (max-width: 980px){
  .mbrand{
    display:flex;
    justify-content:center;
    align-items:center;
    padding: 10px 0 6px;
  }
  .mbrand__pill{
    padding:6px 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 14px rgba(214,31,38,.18), 0 8px 24px rgba(0,0,0,.35);
    display:flex;
    align-items:center;
    gap:10px;
  }
  .mbrand__logo{
    height:26px;
    width:auto;
    display:block;
  }
}

/* =========================
   MOBILE BOTTOM NAV (APP)
========================= */
.mnav{
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:95;

  display:none; /* only mobile */
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap:8px;

  padding:10px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,12,18,.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}

.mnav__item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;

  padding:10px 6px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);

  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mnav__icon{ font-size:18px; line-height:1; }
.mnav__label{ font-size:11px; font-weight:900; opacity:.9; }

.mnav__item:active{
  transform: scale(.98);
}

.mnav__item:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

.mnav__item--primary{
  background: linear-gradient(180deg, rgba(214,31,38,.95), rgba(179,21,27,.95));
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 0 18px rgba(214,31,38,.25);
}

/* Active state (set by JS) */
.mnav__item.is-active{
  background: rgba(214,31,38,.14);
  border-color: rgba(214,31,38,.22);
  box-shadow: 0 0 12px rgba(214,31,38,.18);
}

@media (max-width: 980px){
  .mnav{ display:grid; }
}

/* =========================
   MODAL SMOOTH SCROLL FIX
   Paste at the VERY BOTTOM
========================= */

/* Make modal panel fit the screen */
.modal__panel{
  max-height: calc(100vh - 90px);
  display:flex;
  flex-direction:column;
}

/* Only the body scrolls */
.modal__body{
  overflow:auto;
  -webkit-overflow-scrolling: touch; /* smooth on iPhone */
  scroll-behavior:smooth;
}

/* Nice thin scrollbar (Chrome/Edge) */
.modal__body::-webkit-scrollbar{ width:8px; }
.modal__body::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.16);
  border-radius:999px;
}
.modal__body::-webkit-scrollbar-thumb:hover{
  background: rgba(214,31,38,.28);
}

/* Mobile: tighter max height */
@media (max-width: 980px){
  .modal__panel{
    max-height: calc(100vh - 120px); /* leave room for bottom nav */
  }
}

/* =========================
   MOBILE BOTTOM-SHEET MODALS
   Paste at the VERY BOTTOM
========================= */

/* Keep desktop modal behavior as-is, only change on mobile */
@media (max-width: 980px){

  /* Modal overlay stays full screen */
  .modal__overlay{
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(6px);
  }

  /* Turn modal into bottom sheet */
  .modal__panel{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;

    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;

    border-radius: 22px 22px 0 0 !important;

    /* Height like app sheet */
    max-height: calc(100vh - 110px) !important; /* room for brand + bottom nav */
    display:flex;
    flex-direction:column;

    /* Slide up animation */
    transform: translateY(18px);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
  }

  /* When modal opens, slide in */
  .modal.is-open .modal__panel{
    transform: translateY(0);
    opacity: 1;
  }

  /* Add a small draggable handle */
  .modal__head{
    position:relative;
    padding-top: 22px !important;
  }
  .modal__head::before{
    content:"";
    position:absolute;
    top:8px;
    left:50%;
    transform: translateX(-50%);
    width:46px;
    height:5px;
    border-radius:999px;
    background: rgba(255,255,255,.22);
  }

  /* Scroll inside sheet only */
  .modal__body{
    overflow:auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Slightly smaller close button on mobile */
  .modal__close{
    width:40px;
    height:40px;
  }

  /* Nice scrollbar */
  .modal__body::-webkit-scrollbar{ width:8px; }
  .modal__body::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.16);
    border-radius:999px;
  }
  .modal__body::-webkit-scrollbar-thumb:hover{
    background: rgba(214,31,38,.28);
  }
}
