/* =========================
   /assets/css/site.css
   Mexico.co.jp shared UI system
   Mobile-first, centered, fast
   ========================= */

/* ---------- Design Tokens ---------- */
:root{
  --bg:#071019;
  --bg2:#050b12;

  --text:#eaf2ff;
  --muted:rgba(234,242,255,.75);
  --muted2:rgba(234,242,255,.62);

  --line:rgba(255,255,255,.14);

  --accent:#36d7ff;
  --accent2:#ff4fd8;
  --accent3:#ffb020;

  --good:#34d399;
  --warn:#fbbf24;
  --bad:#fb7185;

  --max:1100px;
  --pad:clamp(16px,3.5vw,32px);
  --r:20px;

  --shadow:0 18px 50px rgba(0,0,0,.35);

  --font:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 650px at 12% 0%, rgba(54,215,255,.10), transparent 55%),
    radial-gradient(900px 650px at 92% 0%, rgba(255,176,32,.08), transparent 55%),
    linear-gradient(180deg,var(--bg),var(--bg2));
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit}
a:hover{opacity:.95}
p{margin:0 0 10px}
ul{margin:10px 0 0;padding-left:18px}
li{margin:6px 0}
hr{border:none;border-top:1px solid rgba(255,255,255,.10);margin:14px 0}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad);
}

/* ---------- Utilities ---------- */
.small{font-size:12px;color:var(--muted2);line-height:1.65}
.muted{color:var(--muted)}
.center{display:flex;justify-content:center;align-items:center}
.hide{display:none !important}
.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;
}
kbd{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:12px;padding:2px 6px;border-radius:8px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.20);
  color:rgba(234,242,255,.86);
}

/* ---------- Topbar / Nav ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(7,16,25,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width:0;
}

.brand img{
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid var(--line);
}

.brand .t{
  min-width:0;
  line-height:1.1;
}
.brand .t b{
  display:block;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand .t span{
  display:block;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.navlinks{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}

.pill{
  text-decoration:none;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  font-size:13px;
  white-space:nowrap;
}

.pill.primary{
  border-color:rgba(54,215,255,.5);
  background:linear-gradient(135deg,rgba(54,215,255,.22),rgba(255,79,216,.16));
}

.pill.active{
  border-color:rgba(255,176,32,.55);
  box-shadow:0 0 0 3px rgba(255,176,32,.08);
}

/* Mobile menu button */
.menuBtn{
  display:none;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:rgba(234,242,255,.92);
  border-radius:14px;
  padding:9px 10px;
  font-size:13px;
}
.menuBtn:active{transform:translateY(1px)}

@media (max-width:860px){
  .menuBtn{display:inline-flex;align-items:center;gap:8px}
  .navlinks{
    display:none;
    width:100%;
    padding:10px 0 2px;
  }
  .navlinks.is-open{display:flex}
  .nav{flex-wrap:wrap}
}

/* ---------- Hero ---------- */
header{padding:18px 0 0}

.hero{
  border-radius:var(--r);
  border:1px solid var(--line);
  overflow:hidden;
  box-shadow:var(--shadow);
  background:
    linear-gradient(90deg, rgba(6,14,22,.92), rgba(6,14,22,.66) 50%, rgba(6,14,22,.88)),
    var(--hero-img, url("/Mexico.png")) center/cover no-repeat;
}

.hero .in{
  padding:clamp(18px,4vw,34px);
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.34);
  border:1px solid rgba(255,255,255,.18);
}

.kdot{
  width:10px;height:10px;border-radius:999px;
  background:radial-gradient(circle at 30% 30%, var(--good), var(--accent));
  box-shadow:0 0 18px rgba(52,211,153,.18);
}

h1{
  margin:12px 0 0;
  font-size:clamp(22px,4vw,38px);
  line-height:1.2;
}

.lead{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.85;
  font-size:clamp(14px,2.2vw,16px);
  max-width:82ch;
}

/* optional hero facts */
.heroGrid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  max-width:92ch;
}
@media (max-width:900px){.heroGrid{grid-template-columns:1fr}}

.badge{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  border-radius:16px;
  padding:10px 12px;
}
.badge b{display:block;font-size:13px}
.badge span{
  display:block;
  margin-top:3px;
  color:rgba(234,242,255,.68);
  font-size:12px;
  line-height:1.65;
}

/* ---------- Sections ---------- */
main{padding:14px 0 30px}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width:860px){.grid{grid-template-columns:1fr}}

.twoCol{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width:900px){.twoCol{grid-template-columns:1fr}}

.card{
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(255,255,255,.05);
  padding:18px;
}

.card + .card{margin-top:14px}

.card h2{
  margin:0 0 10px;
  font-size:16px;
}

.card h3{
  margin:0 0 8px;
  font-size:14px;
}

.card p,.card li{color:var(--muted);line-height:1.85;font-size:14px}

/* Callouts / Notices */
.callout{
  border:1px solid rgba(54,215,255,.22);
  background:linear-gradient(135deg, rgba(54,215,255,.10), rgba(255,176,32,.08));
  border-radius:18px;
  padding:14px 14px;
  color:rgba(234,242,255,.90);
  line-height:1.8;
  font-size:13px;
}

.banner{
  margin-top:14px;
  border-radius:18px;
  border:1px solid rgba(255,176,32,.30);
  background:linear-gradient(135deg, rgba(255,176,32,.10), rgba(54,215,255,.10));
  padding:14px 14px;
  color:rgba(234,242,255,.90);
  line-height:1.8;
  font-size:13px;
  max-width:78ch;
}

/* Lists / Steps */
.list{display:grid;gap:10px;margin-top:10px}
.item{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.16);
  border-radius:16px;
  padding:12px;
}
.item b{display:block;font-size:14px}
.item span{display:block;margin-top:2px;color:rgba(234,242,255,.68);font-size:12px;line-height:1.7}

.route{display:grid;gap:10px;margin-top:10px}
.step{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.16);
  border-radius:16px;
  padding:12px;
}
.step b{display:block;font-size:14px}
.step span{display:block;margin-top:3px;color:rgba(234,242,255,.68);font-size:12px;line-height:1.7}

/* Tags */
.tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:rgba(234,242,255,.86);
}

/* Badges */
.badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.b{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  font-size:12px;color:rgba(234,242,255,.86);
}
.sw{width:10px;height:10px;border-radius:999px}
.sw.g{background:rgba(52,211,153,.90)}
.sw.y{background:rgba(251,191,36,.92)}
.sw.r{background:rgba(251,113,133,.92)}

/* Mini panel */
.mini{
  border:1px dashed rgba(255,255,255,.18);
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.03);
}
.mini p{margin:0;color:var(--muted);font-size:13px;line-height:1.85}

/* Tables (Responsive) */
.table{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  overflow:hidden;
  background:rgba(0,0,0,.14);
}
.row{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:0;
  border-top:1px solid rgba(255,255,255,.10);
}
.row:first-child{border-top:none}
.cell{
  padding:12px 12px;
  font-size:13px;
  line-height:1.75;
  color:var(--muted);
}
.cell b{color:rgba(255,255,255,.95)}
.cell.head{
  background:rgba(0,0,0,.22);
  color:rgba(234,242,255,.88);
  font-weight:800;
}
@media (max-width: 640px){
  .row{grid-template-columns:1fr}
}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  text-decoration:none;
  font-size:13px;
  color:rgba(234,242,255,.92);
}
.btn.primary{
  border-color:rgba(54,215,255,.5);
  background:linear-gradient(135deg,rgba(54,215,255,.22),rgba(255,79,216,.16));
}
.btn:active{transform:translateY(1px)}

/* Footer */
footer{
  padding:22px 0;
  border-top:1px solid var(--line);
  background:rgba(0,0,0,.22);
}
.footerGrid{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-start;
}
.footerLinks{display:flex;gap:10px;flex-wrap:wrap}
.footerLinks a{
  text-decoration:none;
  color:rgba(234,242,255,.86);
  font-size:13px;
  padding:7px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important}
}
