/* ============================================================
   MIGRATERIGHT — HOMEPAGE  (v4, with logo image)
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --mr-green:#166534;
  --mr-green-2:#15803d;
  --mr-green-3:#22c55e;
  --mr-green-soft:#ecfdf5;
  --mr-green-line:#bbf7d0;
  --mr-ink:#0f2e26;
  --mr-body:#1a1a2e;
  --mr-muted:#5e6d67;
  --mr-line:#dfe7e3;
  --mr-bg:#f5f8f6;
  --mr-shadow-sm:0 2px 8px rgba(15,23,42,.045);
  --mr-shadow-md:0 10px 30px rgba(15,23,42,.08);
  --mr-shadow-lg:0 20px 50px rgba(15,23,42,.12);
}

html { scroll-behavior: smooth; }

body{
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 1px 1px, rgba(22,101,52,.055) 1px, transparent 0) 0 0/24px 24px,
    var(--mr-bg);
  color: var(--mr-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #bbf7d0; color: #14532d; }
:focus-visible { outline: 2px solid var(--mr-green-3); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   HEADER
   ============================================================ */
header{
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(229,231,235,.9);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ---------- Header logo (image) ---------- */
.logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
  background: none;
  border: 0;
}

/* Kill any leftover pseudo-elements from the old text logo */
.logo::before,
.logo::after{
  content: none !important;
  display: none !important;
}

.logo img,
.logo .logo-img{
  display: block;
  height: 46px;
  width: auto;
  max-width: 290px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 900px){
  .logo img,
  .logo .logo-img{
    height: 40px;
    max-width: 250px;
  }
}

@media (max-width: 520px){
  .logo img,
  .logo .logo-img{
    height: 28px;
    max-width: 170px;
  }
}

.header-right{
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-nav{
  display: flex;
  gap: 20px;
  font-size: 14px;
  align-items: center;
}

.header-nav a{
  color: var(--mr-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.header-nav a:hover{
  color: var(--mr-ink);
  background: #f3f6f4;
}

/* ============================================================
   HERO — horizontal split
   ============================================================ */
main { flex: 1; }

.home-hero{
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 60px;
  align-items: center;
}

@media (max-width: 960px){
  .home-hero{ padding: 40px 20px; }
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-grid .selector{ order: -1; }
}

/* ---------- Hero text ---------- */
.hero-text{ min-width: 0; }

.hero-kicker{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mr-green);
  background: var(--mr-green-soft);
  border: 1px solid var(--mr-green-line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.hero-text h1{
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -1.2px;
  color: var(--mr-ink);
}

.hero-emphasis{
  background: linear-gradient(135deg, var(--mr-green-2), var(--mr-green-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead{
  font-size: 17px;
  color: #4b5563;
  max-width: 520px;
  margin: 0 0 24px;
  line-height: 1.55;
}

.hero-points{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--mr-muted);
  padding: 0;
}

.hero-points li{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}

.hero-points .check{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mr-green-soft);
  color: var(--mr-green);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(22,101,52,.15);
  flex-shrink: 0;
}

/* ---------- Selector ---------- */
.selector{ min-width: 0; }

.selector-card{
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: 22px;
  padding: 32px 30px 26px;
  box-shadow: var(--mr-shadow-lg);
  position: relative;
  overflow: hidden;
}

.selector-card::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mr-green), var(--mr-green-3));
}

.selector-head{ margin-bottom: 22px; text-align: left; }

.selector-kicker{
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mr-green);
  margin-bottom: 6px;
}

.selector-head h2{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--mr-ink);
  margin-bottom: 4px;
  line-height: 1.2;
}

.selector-head p{
  font-size: 13.5px;
  color: var(--mr-muted);
  margin: 0;
}

.field{ margin-bottom: 14px; }

.field-top{
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}

.step-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mr-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(22,101,52,.25);
}

.field-label{
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mr-ink);
  letter-spacing: -0.1px;
}

.field select{
  width: 100%;
  padding: 12px 40px 12px 14px;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid #e0e5e2;
  border-radius: 11px;
  background: #fbfdfc;
  color: var(--mr-body);
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235e6d67' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.field select:hover{
  border-color: #cbd5d1;
  background-color: #fff;
}

.field select:focus{
  outline: none;
  border-color: var(--mr-green-2);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}

.cta{
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--mr-green), var(--mr-green-2));
  color: #fff;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 6px 16px rgba(22,101,52,.25);
}

.cta-arrow{
  display: inline-block;
  transition: transform .2s ease;
  font-weight: 800;
}

.cta:hover:not(:disabled){
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(22,101,52,.32);
}
.cta:hover:not(:disabled) .cta-arrow{
  transform: translateX(4px);
}
.cta:active:not(:disabled){ transform: translateY(0); }

.cta:disabled{
  background: #cbd5d1;
  box-shadow: none;
  cursor: not-allowed;
  color: #f4f6f5;
}

.hint{
  text-align: center;
  font-size: 12.5px;
  color: var(--mr-muted);
  margin-top: 12px;
  transition: color .15s;
}
.hint.hint-error{ color: #dc2626; font-weight: 600; }

/* ============================================================
   TRUST SECTION
   ============================================================ */
.trust{
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 24px;
  text-align: center;
}

.section-kicker{
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mr-green);
  margin-bottom: 10px;
}

.trust h2{
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--mr-ink);
  margin-bottom: 14px;
  line-height: 1.2;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.trust-lead{
  color: #4b5563;
  font-size: 15.5px;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.trust-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}
@media (min-width: 700px){
  .trust-grid{ grid-template-columns: repeat(3, 1fr); }
}

.trust-item{
  background: #fff;
  border: 1px solid var(--mr-line);
  border-radius: 16px;
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.trust-item:hover{
  transform: translateY(-3px);
  box-shadow: var(--mr-shadow-md);
  border-color: var(--mr-green-line);
}

.trust-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mr-green-soft), #d1fae5);
  color: var(--mr-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(22,101,52,.10);
}
.trust-icon svg{ width: 22px; height: 22px; }

.trust-item h3{
  font-size: 15.5px;
  font-weight: 800;
  color: var(--mr-ink);
  margin-bottom: 6px;
  letter-spacing: -0.1px;
}

.trust-item p{
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer{
  border-top: 1px solid var(--mr-line);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--mr-muted);
  background: #fff;
}

footer a{
  color: var(--mr-green-2);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .15s;
}
footer a:hover{ background: var(--mr-green-soft); text-decoration: none; }

.foot-note{ margin-top: 10px; color: #9ca3af; }

/* ============================================================
   LANGUAGE SWITCHER (Google Translate)
   ============================================================ */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight{
  display: none !important;
  box-shadow: none !important;
  background: none !important;
}
body { top: 0 !important; }
iframe.skiptranslate { display: none !important; }
#google_translate_element { display: none !important; }

.lang-switcher{ position: relative; font-family: inherit; }

.lang-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dfe7e3;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #0f2e26;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.lang-btn:hover{
  border-color: #bbf7d0;
  background: #f9fdfb;
  box-shadow: 0 2px 8px rgba(22,101,52,.08);
}
.lang-btn[aria-expanded="true"]{
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.lang-globe{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #166534;
  flex-shrink: 0;
}
.lang-globe svg{ width: 100%; height: 100%; }
.lang-current{
  color: #0f2e26;
  font-weight: 700;
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-caret{
  display: inline-flex;
  align-items: center;
  color: #5e6d67;
  transition: transform .15s;
}
.lang-btn[aria-expanded="true"] .lang-caret{ transform: rotate(180deg); }

.lang-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #dfe7e3;
  border-radius: 12px;
  padding: 6px;
  margin: 0;
  list-style: none;
  box-shadow: 0 12px 32px rgba(15,23,42,.12);
  z-index: 60;
  animation: langOpen .15s ease-out;
}
.lang-menu[hidden]{ display: none; }

@keyframes langOpen{
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-menu li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.lang-menu li small{
  font-size: 11px;
  font-weight: 500;
  color: #8a9a93;
  letter-spacing: .02em;
}
.lang-menu li:hover{ background: #f0fdf4; color: #14532d; }
.lang-menu li.active{
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #14532d;
  font-weight: 800;
}
.lang-menu li.active::after{
  content: "✓";
  font-size: 12px;
  color: #166534;
  font-weight: 900;
}
.lang-menu li.active small{ color: #4f7a63; }

/* ============================================================
   MULTI-LANGUAGE SUPPORT
   ============================================================ */
html[lang="ne"] body,
html[lang="hi"] body{
  font-family: "Noto Sans Devanagari", "Inter", -apple-system, sans-serif;
}
html[lang="si"] body{
  font-family: "Noto Sans Sinhala", "Inter", -apple-system, sans-serif;
}
html[lang="ta"] body{
  font-family: "Noto Sans Tamil", "Inter", -apple-system, sans-serif;
}
html[lang="ur"] body,
html[dir="rtl"] body{
  font-family: "Noto Nastaliq Urdu", "Noto Sans Devanagari", "Inter", sans-serif;
}

/* RTL */
html[dir="rtl"] .hero-grid{ direction: rtl; }
html[dir="rtl"] .header-inner{ flex-direction: row-reverse; }
html[dir="rtl"] .hero-text{ text-align: right; }
html[dir="rtl"] .hero-points li{ flex-direction: row-reverse; }
html[dir="rtl"] .lang-menu{ right: auto; left: 0; }
html[dir="rtl"] .field-top{ flex-direction: row-reverse; }
html[dir="rtl"] .cta-arrow{ transform: scaleX(-1); display: inline-block; }
html[dir="rtl"] .cta:hover:not(:disabled) .cta-arrow{ transform: scaleX(-1) translateX(4px); }
html[dir="rtl"] .mr-footer-main{ direction: rtl; }
html[dir="rtl"] .mr-footer-brand{ text-align: right; }
html[dir="rtl"] .mr-footer-safety{ flex-direction: row-reverse; }
html[dir="rtl"] .mr-footer-bottom{ flex-direction: row-reverse; }
html[dir="rtl"] .mr-footer-column a{ text-align: right; }

/* ============================================================
   MOTION + MOBILE
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px){
  .header-right{ gap: 8px; }
  .lang-btn{ padding: 7px 10px; font-size: 12.5px; }
  .lang-current{ max-width: 78px; }
  .lang-menu{ min-width: 180px; }
  .header-nav{ display: none; }
  .lang-menu li{ padding: 10px 12px; font-size: 13.5px; }
}

@media (max-width: 520px){
  .home-hero{ padding: 28px 16px 40px; }
  .selector-card{ padding: 26px 20px 22px; border-radius: 18px; }
  .selector-head h2{ font-size: 20px; }
  .field select{ font-size: 15px; padding: 12px 38px 12px 12px; }
  .cta{ font-size: 14.5px; padding: 13px 16px; }
  .hero-text h1{ font-size: 32px; }
  .hero-lead{ font-size: 15.5px; }
  .trust-item{ padding: 20px; }
}

@media (max-width: 380px){
  .lang-current{ display: none; }
  .lang-btn{ padding: 8px; }
  .lang-caret{ display: none; }
}