/* k3visa.org — navy and gold, phone first. Fonts are served from this site (no third parties). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-var-latin.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/fraunces-var-latin.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/fraunces-italic-latin.woff2") format("woff2"); }

:root {
  --navy: #0D2240;
  --navy-2: #163259;
  --gold: #C9A54C;
  --gold-light: #E2C77F;
  --gold-tint: #F5EEDB;
  --ink: #111827;
  --text: #1F2937;
  --muted: #5B6475;
  --line: #D8DEE7;
  --page: #F6F4EF;
  --error: #B42318;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 14px 32px -14px rgba(16, 24, 40, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.nw { white-space: nowrap; }
[hidden] { display: none !important; }
svg { display: block; }
a { color: var(--navy-2); }
:focus-visible { outline: 3px solid rgba(22, 50, 89, .5); outline-offset: 3px; }
::selection { background: rgba(201, 165, 76, .3); }

/* ---- top band ---------------------------------------------------------- */
.top {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-bottom: 4.75rem;
  background:
    radial-gradient(48rem 28rem at 88% -12%, rgba(70, 110, 170, .28), transparent 62%),
    linear-gradient(165deg, #0D2240 0%, #13305A 58%, #0D2240 100%);
}
.top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 75%);
          mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 75%);
  pointer-events: none;
}
.top::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(201, 165, 76, .45); }
.top > * { position: relative; }
.top :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.08rem; letter-spacing: -.005em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .6rem;
  background: var(--gold);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-name span { color: var(--gold-light); }
.firm { display: none; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }

.hero { padding-top: 1.6rem; animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
h1 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 9vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.hl { color: var(--gold-light); }
.lead { margin: 0 0 1.35rem; max-width: 38rem; font-size: 1.06rem; line-height: 1.65; color: rgba(255, 255, 255, .86); }
.scope {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  max-width: 38rem;
  margin: 0;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  font-size: .94rem;
  line-height: 1.5;
}
.scope svg { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .1rem; color: var(--gold-light); }
.jump {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  padding: .85rem 1.3rem;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
  transition: background-color .15s ease;
}
.jump svg { width: 1.1rem; height: 1.1rem; }
.jump:hover { background: var(--gold-light); }

/* ---- cards ------------------------------------------------------------- */
.main { position: relative; margin-top: -3rem; padding-bottom: 3.5rem; }
.cols { display: grid; gap: 1.25rem; max-width: 46rem; margin: 0 auto; }
.case, .form-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #E6E2D8;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.case::before, .form-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold); }
.case { padding: 1.6rem 1.4rem 1.5rem; animation: rise .7s .08s cubic-bezier(.2, .7, .2, 1) both; }
.case-icon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1rem;
  border-radius: .7rem;
  background: var(--gold-tint);
  color: var(--navy);
}
.case-icon svg { width: 1.45rem; height: 1.45rem; }
.case p { margin: 0; font-size: 1rem; line-height: 1.75; color: var(--text); }
.case i { font-family: var(--serif); font-size: 1.08em; color: var(--ink); }

.form-card { padding: 1.7rem 1.25rem 1.5rem; scroll-margin-top: 1rem; animation: rise .7s .16s cubic-bezier(.2, .7, .2, 1) both; }
.form-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.35rem; }
.form-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: .7rem;
  color: var(--gold-light);
  background: var(--navy);
}
.form-badge svg { width: 1.4rem; height: 1.4rem; }
h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.015em; color: var(--navy); }
.form-message { margin: 0 0 1.1rem; padding: .8rem .95rem; border-radius: 10px; background: #FEF3F2; color: #912018; font-size: .92rem; font-weight: 600; }

.field { margin: 0 0 1.05rem; }
label { display: block; margin: 0 0 .42rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.control { position: relative; }
.control .ico, .control .chev { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); pointer-events: none; }
.control .ico { left: .95rem; width: 1.15rem; height: 1.15rem; color: #8A93A3; transition: color .15s; }
.control .chev { right: .95rem; width: 1.1rem; height: 1.1rem; color: var(--muted); }
.control svg { width: 100%; height: 100%; }
.control:focus-within .ico { color: var(--navy-2); }
input[type=text], input[type=email], input[type=tel], input[type=date], select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3.1rem;
  margin: 0;
  padding: .78rem .95rem .78rem 2.85rem;
  font: inherit;
  font-size: 1rem;   /* 16px: smaller makes iOS zoom on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
select { -webkit-appearance: none; appearance: none; padding-right: 2.7rem; cursor: pointer; }
input[type=date] { -webkit-appearance: none; appearance: none; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
/* Chromium: the native picker icon covers the whole field, invisible, so the left icon is the only one and a click anywhere opens the picker */
input[type=date] { position: relative; }
input[type=date]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
input:hover, select:hover { border-color: #B9C2D0; }
input:focus, select:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(22, 50, 89, .14); }
[aria-invalid=true] { border-color: var(--error) !important; }
.control:has([aria-invalid=true]) .ico { color: var(--error); }
.help { margin: .42rem 0 0; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.error { margin: .42rem 0 0; font-size: .86rem; font-weight: 600; line-height: 1.4; color: var(--error); }
.warning { margin: .5rem 0 0; padding: .6rem .8rem; border-left: 3px solid var(--gold); border-radius: 6px; background: #FBF6E9; color: #6B4E0E; font-size: .86rem; line-height: 1.45; }

.form-card button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-height: 3.4rem;
  margin: 1.5rem 0 0;
  padding: .9rem 1.25rem;
  font: inherit;
  font-size: 1.04rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(13, 34, 64, .7);
  transition: background-color .15s ease, transform .15s ease;
}
.form-card button svg { width: 1.2rem; height: 1.2rem; color: var(--gold-light); transition: transform .15s ease; }
.form-card button:hover { background: var(--navy-2); }
.form-card button:hover svg { transform: translateX(3px); }
.form-card button:active { transform: translateY(1px); }
.notice { display: flex; gap: .55rem; align-items: flex-start; margin: 1rem 0 0; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.notice svg { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; color: var(--gold); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.done { padding-top: 2.6rem; padding-bottom: 2.6rem; text-align: center; }
.done-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  color: var(--gold-light);
  background: var(--navy);
}
.done-icon svg { width: 1.9rem; height: 1.9rem; stroke-width: 2.4; }
.done-title { margin: 0 0 .55rem; font-family: var(--serif); font-weight: 600; font-size: 1.85rem; line-height: 1.2; letter-spacing: -.015em; color: var(--navy); }
.done-text { max-width: 26rem; margin: 0 auto; font-size: 1.05rem; color: var(--muted); }

/* ---- footer ------------------------------------------------------------ */
.site-footer { position: relative; padding: 2.75rem 0 3rem; background: var(--navy); color: rgba(226, 232, 242, .75); font-size: .875rem; line-height: 1.7; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold); }
.site-footer .brand { margin-bottom: 1.2rem; }
.site-footer p { max-width: 52rem; margin: 0 0 1rem; }
.site-footer a:not(.brand) { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.adv {
  display: inline-block;
  margin-right: .35rem;
  padding: .05rem .55rem;
  border: 1px solid rgba(201, 165, 76, .7);
  border-radius: 4px;
  color: var(--gold-light);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  vertical-align: .12em;
}
.privacy { display: flex; gap: .6rem; align-items: flex-start; }
.privacy svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .22rem; color: var(--gold); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- larger screens ---------------------------------------------------- */
@media (min-width: 640px) {
  .wrap { padding: 0 28px; }
  .firm { display: block; }
  .hero { padding-top: 2.4rem; }
  h1 { font-size: clamp(3rem, 6.4vw, 3.6rem); }
  .lead { font-size: 1.12rem; }
  .case { padding: 2rem 2rem 1.9rem; }
  .form-card { padding: 2.1rem 2rem 1.9rem; }
}
@media (min-width: 1024px) {
  .wrap { padding: 0 36px; }
  .topbar { padding-top: 1.4rem; padding-bottom: 1.4rem; }
  .top { min-height: 34.5rem; padding-bottom: 7rem; }
  .hero { max-width: calc(100% - 440px - 60px); padding-top: 3.4rem; }
  h1 { font-size: clamp(3.1rem, 4.5vw, 4.1rem); }
  .jump { display: none; }
  .main { margin-top: -4.5rem; }
  .cols { max-width: none; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 60px; align-items: start; }
  .case { grid-column: 1; grid-row: 1; position: sticky; top: 1.5rem; }
  .form-card { grid-column: 2; grid-row: 1; margin-top: -22rem; }
}
