@import 'tailwindcss';
@import 'tw-animate-css';
@import 'shadcn/tailwind.css';

@font-face { font-family: 'Nunito'; src: url('/nunito-variable.ttf') format('truetype'); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #0d3157;
  --muted: #547086;
  --blue: #176aa7;
  --blue-dark: #105589;
  --aqua: #7fc4d3;
  --aqua-pale: #dff4f7;
  --cream: #fff8e7;
  --shadow: rgba(13, 49, 87, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 10% 12%, rgba(255,255,255,.32) 0 9rem, transparent 9.1rem), radial-gradient(circle at 92% 30%, rgba(255,255,255,.2) 0 15rem, transparent 15.1rem), var(--aqua);
  color: var(--ink);
  font-family: 'Nunito', ui-rounded, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
.site-frame { width: min(1120px, calc(100% - 32px)); margin: 24px auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px;
  border: 2px solid rgba(255,255,255,.66); border-radius: 28px; background: rgba(255,253,247,.94);
  box-shadow: 0 8px 0 rgba(13,49,87,.12); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.05; }
.brand-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: var(--blue); color: white; font-size: 27px; font-weight: 900; }
.brand strong { display: block; font-size: 21px; font-weight: 900; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-weight: 700; }
nav { display: flex; gap: 6px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-picker select {
  min-height: 44px; padding: 8px 34px 8px 12px; border: 2px solid #c7dde3; border-radius: 14px;
  background: white; color: var(--ink); font: inherit; font-size: 15px; font-weight: 850; cursor: pointer;
}
.language-picker select:focus-visible { outline: 3px solid var(--aqua-pale); outline-offset: 2px; }
.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; }
.nav-link { padding: 10px 16px; border-radius: 14px; text-decoration: none; font-weight: 800; }
.nav-link:hover, .nav-link:focus-visible { background: var(--aqua-pale); outline: none; }
.nav-link.active { background: var(--blue); color: white; }
main { margin-top: 30px; }
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr) 230px; min-height: 310px; align-items: center; overflow: hidden;
  padding: clamp(34px,6vw,70px); border: 2px solid rgba(255,255,255,.7); border-radius: 38px;
  background: linear-gradient(135deg,#176aa7,#125887); color: white; box-shadow: 0 12px 0 rgba(13,49,87,.18);
}
.hero::after { content: ''; position: absolute; width: 310px; height: 310px; right: -100px; top: -140px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero-copy { position: relative; z-index: 1; max-width: 700px; }
.eyebrow { margin: 0 0 10px; color: #cdeef4; font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(42px,7vw,72px); line-height: 1.03; font-weight: 950; letter-spacing: -.035em; }
.hero-intro { max-width: 680px; margin: 20px 0 0; color: #eefcff; font-size: clamp(18px,2.3vw,23px); line-height: 1.55; font-weight: 700; }
.bao-mascot { position: relative; z-index: 1; width: 230px; height: auto; align-self: end; filter: drop-shadow(0 12px 8px rgba(4,33,65,.2)); }
.content-stack { display: grid; gap: 22px; margin-top: 26px; }
.topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.topic-card, .info-card { border: 2px solid rgba(255,255,255,.72); border-radius: 28px; background: var(--cream); box-shadow: 0 8px 0 var(--shadow); }
.topic-card { padding: 28px; }
.info-card { padding: clamp(26px,5vw,44px); }
.topic-card h2, .info-card h2 { margin: 0 0 10px; font-size: clamp(22px,3vw,29px); line-height: 1.2; font-weight: 900; }
.topic-card p, .info-card p { margin: 0; color: var(--muted); font-weight: 650; }
.info-card p + p { margin-top: 14px; }
.icon-tile { display: grid; width: 52px; height: 52px; margin-bottom: 18px; place-items: center; border-radius: 17px; background: var(--aqua-pale); color: var(--blue); }
.icon-tile svg { width: 25px; height: 25px; stroke-width: 2.5; }
.contact-row { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 18px; }
.contact-row .icon-tile { margin: 0; }
.muted { margin-top: 8px !important; font-size: 15px; }
.primary-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 13px 18px; border-radius: 16px; background: var(--blue); color: white; font-weight: 900; text-decoration: none; }
.primary-link:hover, .primary-link:focus-visible { background: var(--blue-dark); outline: 3px solid var(--aqua-pale); outline-offset: 3px; }
.email-link { color: var(--blue); font-weight: 900; text-underline-offset: 3px; }
footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 28px 12px 16px; }
footer strong { font-weight: 900; }
footer p { margin: 2px 0 0; color: #365b75; font-size: 15px; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 850; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-frame { width: min(100% - 20px,620px); margin-top: 10px; }
  .site-header { align-items: flex-start; flex-direction: column; border-radius: 23px; }
  .header-actions { width: 100%; flex-direction: column; align-items: stretch; }
  nav { width: 100%; }
  .language-picker select { width: 100%; }
  .nav-link { flex: 1; padding-inline: 8px; text-align: center; }
  .hero { grid-template-columns: 1fr 108px; min-height: 280px; padding: 34px 24px 28px; border-radius: 30px; }
  .bao-mascot { width: 145px; max-width: 38vw; transform: translateX(18px); }
  h1 { font-size: clamp(38px,12vw,55px); }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card, .info-card { border-radius: 24px; }
  footer { flex-direction: column; padding-inline: 8px; }
}
@media (max-width: 430px) {
  .brand small { display: none; }
  .hero { display: block; padding-bottom: 140px; }
  .bao-mascot { position: absolute; right: 8px; bottom: -2px; width: 150px; max-width: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
