:root{
  --green:#123c2c;
  --green-2:#1f684a;
  --green-3:#e7f2eb;
  --gold:#d4aa54;
  --blue:#2f6575;
  --red:#9b3f37;
  --ink:#16231b;
  --muted:#607068;
  --line:#dce6e0;
  --soft:#f4f8f5;
  --white:#fff;
  --max:1180px;
  --radius:18px;
  --shadow:0 18px 48px rgba(16,45,34,.12);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--ink);
  background:var(--soft);
  line-height:1.7;
}

a{
  color:var(--green-2);
  text-underline-offset:3px;
}

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

button,
select,
input{
  font:inherit;
}

.container{
  width:min(var(--max),calc(100% - 32px));
  margin-inline:auto;
}

/* =========================
   TOP BAR
========================= */

.topbar{
  background:#08261c;
  color:#dceae3;
  font-size:.88rem;
}

.topbar .container{
  min-height:42px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.topbar a{
  color:#fff;
}

/* =========================
   HEADER / NAVIGATION
========================= */

.header{
  position:sticky;
  top:0;
  z-index:80;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
}

.nav{
  min-height:78px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--ink);
}

.brand img{
  height:46px;
  width:auto;
  max-width:95px;
}

.brand strong,
.brand small{
  display:block;
}

.brand small{
  font-size:.77rem;
  color:var(--muted);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.nav-links a{
  text-decoration:none;
  color:#28372f;
  font-weight:800;
  font-size:.9rem;
}

.lang-select-wrap{
  position:relative;
}

.lang-select{
  min-height:42px;
  border:1px solid #cbd8d0;
  border-radius:10px;
  background:#fff;
  color:#203128;
  padding:0 34px 0 11px;
  font-weight:800;
  cursor:pointer;
}

/* =========================
   BUTTONS
========================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 18px;
  border-radius:12px;
  text-decoration:none;
  font-weight:900;
  border:1px solid transparent;
  cursor:pointer;
}

.btn-primary{
  background:var(--green);
  color:#fff;
}

.btn-primary:hover{
  background:#0c3023;
}

.btn-outline{
  background:#fff;
  color:var(--green);
  border-color:#bdd0c5;
}

.btn-soft{
  background:#e9f3ed;
  color:var(--green);
}

.btn-danger-soft{
  background:#fff2ef;
  color:#7d2f29;
  border-color:#ebc4be;
}

/* =========================
   FULL-WIDTH HERO
========================= */

.hero{
  position:relative;
  isolation:isolate;
  width:100%;
  min-height:clamp(450px,32vh,420px);
  display:flex;
  align-items:center;
  overflow:hidden;

  /*
   * Full-width hero background.
   * "cover" fills the complete hero without stretching.
   * The image remains centered and responsive.
   */
  background-image:
    linear-gradient(
      90deg,
      rgba(4,27,18,.84) 0%,
      rgba(5,31,21,.72) 38%,
      rgba(6,32,22,.50) 68%,
      rgba(5,29,20,.30) 100%
    ),
    url("https://www.ke-visa.com/img/ke-visa.webp");

  background-position:center center;
  background-repeat:no-repeat;
  background-size:cover;
  background-attachment:scroll;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.08) 0%,
      transparent 35%,
      rgba(3,25,17,.20) 100%
    );
  pointer-events:none;
}

.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:70px;
  z-index:-1;
  background:linear-gradient(
    transparent,
    rgba(3,25,17,.30)
  );
  pointer-events:none;
}

.hero-inner{
  position:relative;
  z-index:2;
  width:100%;
  padding:24px 0 30px;
}

.hero-copy{
  max-width:1250px;
  color:#fff;
  margin-bottom:30px;
}

.eyebrow{
  display:inline-flex;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(7,38,26,.70);
  border:1px solid rgba(255,255,255,.32);
  color:#fff;
  font-size:.83rem;
  font-weight:900;
  backdrop-filter:blur(4px);
}

h1,
h2,
h3{
  line-height:1.22;
  letter-spacing:-.02em;
  color:#102018;
}

.hero h1{
  color:#000;
  font-size:clamp(2rem,2vw,1.7rem);
  line-height:1.08;
  letter-spacing:-.035em;
  margin:16px 0 18px;
  max-width:1250px;
  text-shadow:0 2px 14px rgba(0,0,0,.38);
}

.hero .lead{
  font-size:clamp(1.05rem,1.45vw,1.28rem);
  line-height:1.65;
  color:#000;
  max-width:930px;
  margin:0;
  text-shadow:0 1px 8px rgba(0,0,0,.45);
}

.hero-trust{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:20px;
  font-size:.92rem;
  color:#fff;
  font-weight:700;
}

.hero-trust span{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:8px;
  background:rgba(5,34,23,.50);
  backdrop-filter:blur(4px);
}

.hero-trust span::before{
  content:"✓";
  font-weight:900;
  color:#fff;
  margin-right:7px;
}

/* =========================
   ETA / EVISA CHECKER
========================= */

.checker-shell{
  width:100%;
  background:rgba(255,255,255,.97);
  border:1px solid rgba(255,255,255,.80);
  border-radius:22px;
  box-shadow:0 24px 65px rgba(0,0,0,.28);
  overflow:hidden;
  backdrop-filter:blur(8px);
}

.checker-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:20px 22px;
  border-bottom:1px solid var(--line);
}

.checker-heading h2{
  font-size:1.45rem;
  margin:0 0 4px;
}

.checker-heading p{
  margin:0;
  color:var(--muted);
  font-size:.92rem;
}

.policy-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:#edf6f0;
  border:1px solid #cde0d4;
  border-radius:999px;
  padding:7px 11px;
  color:var(--green);
  font-weight:900;
  font-size:.78rem;
}

.policy-badge::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#2f9661;
}

.checker-row{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr auto;
  gap:12px;
  padding:18px 22px 22px;
  align-items:end;
}

.field label{
  display:block;
  font-weight:900;
  font-size:.82rem;
  margin-bottom:6px;
  color:#34443a;
}

.field select{
  width:100%;
  min-height:50px;
  border:1px solid #bdccc3;
  border-radius:12px;
  background:#fff;
  padding:0 12px;
  color:#17231d;
}

.field select:focus{
  outline:3px solid rgba(31,104,74,.16);
  border-color:var(--green-2);
}

.checker-submit{
  min-height:50px;
  border:0;
  border-radius:12px;
  background:var(--green);
  color:#fff;
  padding:0 20px;
  font-weight:950;
  cursor:pointer;
}

.checker-submit:hover{
  background:#0d3225;
}

.checker-help{
  padding:0 22px 18px;
  color:#637169;
  font-size:.82rem;
}

.result{
  display:none;
  border-top:1px solid var(--line);
  padding:22px;
}

.result.show{
  display:block;
}

.result-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}

.status{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:950;
  margin-bottom:9px;
}

.status.required{
  background:#fff1e9;
  color:#7f3d22;
  border:1px solid #efd1bf;
}

.status.exempt{
  background:#eaf6ee;
  color:#17603d;
  border:1px solid #bfe0cc;
}

.status.verify{
  background:#fff8e6;
  color:#75581d;
  border:1px solid #ead49b;
}

.result h3{
  font-size:1.42rem;
  margin-bottom:6px;
}

.result p{
  margin:0;
  color:#47554d;
}

.result-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  margin-top:18px;
}

.result-box{
  border:1px solid var(--line);
  border-radius:15px;
  padding:17px;
  background:#fbfdfc;
}

.result-box h4{
  margin:0 0 8px;
  font-size:1rem;
}

.result-box ul,
.result-box ol{
  margin:8px 0 0;
  padding-left:20px;
}

.result-box li{
  margin:6px 0;
}

.result-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.result-note{
  margin-top:14px;
  padding:13px 14px;
  background:#f3f7f5;
  border-left:4px solid var(--blue);
  border-radius:8px;
  color:#4c5b53;
  font-size:.9rem;
}

/* =========================
   MAIN CONTENT
========================= */

main{
  padding:46px 0;
}

.layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 315px;
  gap:28px;
  align-items:start;
}

.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  margin-bottom:24px;
  box-shadow:0 7px 22px rgba(25,53,42,.035);
}

.review{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--green);
  font-size:.82rem;
  font-weight:850;
}

.review::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#2f9661;
}

h2{
  font-size:clamp(1.55rem,2vw,1.65rem);
  margin:0 0 4px;
}

h3{
  font-size:1.16rem;
  margin:0 0 8px;
}

.quick-grid,
.step-grid,
.doc-grid,
.purpose-grid,
.fee-grid,
.link-grid{
  display:grid;
  gap:15px;
  margin-top:18px;
}

.quick-grid{
  grid-template-columns:repeat(4,1fr);
}

.step-grid{
  grid-template-columns:repeat(3,1fr);
}

.doc-grid,
.fee-grid{
  grid-template-columns:repeat(2,1fr);
}

.purpose-grid,
.link-grid{
  grid-template-columns:repeat(3,1fr);
}

.quick,
.step,
.doc,
.purpose,
.fee,
.link-card{
  border:1px solid var(--line);
  border-radius:15px;
  padding:18px;
  background:#fbfdfc;
}

.quick b,
.step b,
.doc b,
.purpose b{
  display:block;
  color:var(--green);
  font-size:.84rem;
  margin-bottom:5px;
}

.fee strong{
  display:block;
  color:var(--green);
  font-size:1.5rem;
}

.check{
  list-style:none;
  margin:14px 0 0;
  padding:0;
}

.check li{
  position:relative;
  padding:9px 0 9px 29px;
  border-bottom:1px dashed #e6ece8;
}

.check li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:9px;
  color:#2e905c;
  font-weight:900;
}

.check li:last-child{
  border-bottom:0;
}

.callout{
  margin-top:18px;
  padding:17px 18px;
  border-left:4px solid var(--green);
  background:#edf6f0;
  border-radius:10px;
}

.callout.warn{
  border-left-color:var(--gold);
  background:#fff8e8;
}

.callout.info{
  border-left-color:var(--blue);
  background:#eef7fa;
}

/* =========================
   TABLES
========================= */

.table-wrap{
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:15px;
  margin-top:18px;
}

table{
  border-collapse:collapse;
  width:100%;
  min-width:760px;
}

th,
td{
  padding:14px 15px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid var(--line);
}

th{
  background:#f1f6f3;
}

tr:last-child td{
  border-bottom:0;
}

/* =========================
   SOURCES / FAQ
========================= */

.source-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.source-links a{
  display:inline-flex;
  padding:8px 11px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
}

details{
  border-top:1px solid var(--line);
  padding:16px 0;
}

summary{
  font-weight:900;
  cursor:pointer;
}

/* =========================
   SIDEBAR
========================= */

.sidebar{
  position:sticky;
  top:98px;
}

.side{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  margin-bottom:18px;
}

.side ul{
  padding-left:20px;
}

.side .btn{
  width:100%;
  margin-top:8px;
}

.contact-card{
  background:linear-gradient(145deg,#123c2c,#1f684a);
  color:#fff;
}

.contact-card h3{
  color:#fff;
}

.contact-card p{
  color:#e8f2ec;
}

.contact-card a{
  color:#fff;
}

/* =========================
   COOKIE NOTICE
========================= */

.cookie-notice{
  position:fixed;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:100;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  max-width:760px;
  margin:auto;
}

.cookie-notice button{
  border:0;
  background:var(--green);
  color:#fff;
  border-radius:10px;
  padding:8px 13px;
  font-weight:900;
  cursor:pointer;
}

/* =========================
   SHARED SCRIPT.JS FOOTER
========================= */

.site-footer{
  background:#0d281e;
  color:#dce8e1;
  margin-top:46px;
  padding:44px 0 24px;
}

.footer-intro{
  margin-bottom:24px;
}

.footer-intro h3{
  color:#fff;
  font-size:1.35rem;
  margin-bottom:6px;
}

.footer-intro p{
  max-width:700px;
  margin:0;
}

.footer-grid{
  display:grid;
  gap:26px;
}

.footer-grid-all{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:22px;
}

.footer-column h3{
  color:#fff;
  font-size:1rem;
  margin-bottom:12px;
}

.site-footer a{
  color:#d9efe3;
}

.site-footer ul{
  list-style:none;
  padding:0;
  margin:0;
}

.site-footer li{
  margin:8px 0;
}

.footer-column a{
  text-decoration:none;
}

.footer-column a:hover{
  text-decoration:underline;
}

.fine{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:28px;
  padding-top:20px;
  color:#afbbb5;
  font-size:.88rem;
}

/* =========================
   ACCESSIBILITY
========================= */

.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;
}

/* =========================
   RESPONSIVE - LARGE TABLET
========================= */

@media(max-width:1050px){

  .footer-grid-all{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:1030px){

  .hero{
    min-height:720px;
    background-position:center center;
  }

  .checker-row{
    grid-template-columns:1fr 1fr;
  }

  .checker-submit{
    width:100%;
  }

  .layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:static;
  }
}

/* =========================
   RESPONSIVE - TABLET
========================= */

@media(max-width:820px){

  .nav{
    align-items:flex-start;
    flex-direction:column;
    padding:12px 0;
  }

  .hero{
    min-height:760px;
    background-position:center center;
  }

  .hero-inner{
    padding:54px 0 60px;
  }

  .hero h1{
    font-size:clamp(2.2rem,7vw,3.3rem);
  }

  .quick-grid,
  .purpose-grid,
  .link-grid,
  .step-grid{
    grid-template-columns:1fr 1fr;
  }

  .footer-grid{
    grid-template-columns:1fr 1fr;
  }

  .footer-grid-all{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .result-grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   RESPONSIVE - MOBILE
========================= */

@media(max-width:620px){

  .container{
    width:min(100% - 24px,var(--max));
  }

  .hero{
    min-height:100svh;
    align-items:flex-start;

    /*
     * Keeps the hero photograph fully filling mobile
     * screens without distortion.
     */
    background-size:cover;
    background-position:center center;
  }

  .hero-inner{
    padding:46px 0 54px;
  }

  .hero-copy{
    margin-bottom:24px;
  }

  .hero h1{
    font-size:clamp(2rem,10vw,2.75rem);
    line-height:1.08;
  }

  .hero .lead{
    font-size:1rem;
    line-height:1.6;
  }

  .hero-trust{
    gap:8px;
  }

  .hero-trust span{
    width:100%;
  }

  .checker-shell{
    border-radius:17px;
  }

  .checker-heading{
    flex-direction:column;
    padding:18px;
  }

  .checker-row{
    padding:17px 18px 20px;
  }

  .checker-help{
    padding:0 18px 17px;
  }

  .checker-row,
  .facts,
  .quick-grid,
  .purpose-grid,
  .link-grid,
  .step-grid,
  .doc-grid,
  .fee-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .panel{
    padding:21px;
  }

  .cookie-notice{
    align-items:flex-start;
    flex-direction:column;
  }

  .footer-grid-all{
    grid-template-columns:1fr;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media(max-width:480px){

  .hero{
    min-height:100svh;
    background-position:center center;
  }

  .hero-inner{
    padding-top:38px;
    padding-bottom:46px;
  }

  .hero h1{
    font-size:2rem;
  }

  .checker-heading h2{
    font-size:1.25rem;
  }

  .result{
    padding:18px;
  }

  .result-head{
    flex-direction:column;
  }

  .footer-grid-all{
    grid-template-columns:1fr;
  }
}

/* =========================
   LARGE / WIDE DISPLAYS
========================= */

@media(min-width:1440px){

  .hero{
    min-height:780px;
    background-position:center center;
  }

  .hero-inner{
    padding-top:80px;
    padding-bottom:86px;
  }
}

@media(min-width:1900px){

  .hero{
    min-height:820px;
    background-size:cover;
    background-position:center center;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media(prefers-reduced-motion:reduce){

  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}