/* =========================================================
   Successpoint Immigration Consulting
   Brand tokens come from copy/brand-kit.md
   ========================================================= */
:root {
  --bg: #0A1426;
  --surface: #101D35;
  --surface-2: #162745;
  --text: #F5F2EC;
  --muted: #A7B2C8;
  --accent: #E0283E;
  --accent-rgb: 224, 40, 62;
  --accent-2: #6E9BFF;
  --line: #24365A;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;

  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --pad: clamp(20px, 4vw, 32px);
  --section: clamp(80px, 11vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #F0475B);
  color: #fff;
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), .28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(var(--accent-rgb), .38); }
.btn--ghost { border-color: color-mix(in srgb, var(--text) 28%, transparent); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,.04); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.scrolled {
  background: rgba(10, 20, 38, .82);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.menu-toggle { display: none; }

/* ---------- Route line (signature) ---------- */
#page { position: relative; }
.route { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.route__path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: .7; }
.route__tip { fill: var(--accent); filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), .9)); }
.section > .container, .hero > .container, .trust > .container { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(70% 60% at 78% 40%, rgba(46, 84, 160, .28), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(var(--accent-rgb), .10), transparent 70%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: 1.02; margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--accent); display: block; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__note { font-size: .92rem; color: var(--muted); }

.hero__art { position: relative; }
.globe { width: 100%; max-width: 480px; margin-left: auto; overflow: visible; }
.globe__lines { fill: none; stroke: #6E9BFF; stroke-width: 1; opacity: .28; }
.meridian { transform-box: fill-box; transform-origin: center; animation: meridian 24s linear infinite; }
@keyframes meridian {
  0%   { transform: scaleX(1); }
  25%  { transform: scaleX(0); }
  50%  { transform: scaleX(-1); }
  75%  { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
.globe__arc {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.2s .5s var(--ease) forwards;
}
.globe__pin { opacity: 0; animation: pinIn .7s 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pinIn { from { opacity: 0; transform: translate(316px, 72px); } to { opacity: 1; transform: translate(316px, 92px); } }

/* ---------- Trust line ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-block: 22px; }
.trust__list li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text); font-size: .98rem; }
.trust__list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head h2 { margin-bottom: 18px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__intro { color: var(--muted); font-size: 1.08rem; max-width: 38em; }

/* ---------- Services: bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  grid-column: span 2;
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); margin-bottom: 22px; }
.card__num { font: 600 .85rem/1 var(--font); color: var(--accent); letter-spacing: .12em; margin-bottom: 18px; }
.card__link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--text);
}
.card__link::after { content: "\2192"; color: var(--accent); transition: transform .25s var(--ease); }
.card__link:hover::after { transform: translateX(4px); }

.card--feature { grid-column: span 4; flex-direction: row; padding: 0; }
.card--feature .card__media { flex: 1 1 50%; min-height: 320px; }
.card--feature .card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--feature .card__body { flex: 1 1 50%; display: flex; flex-direction: column; padding: 34px; }
.card__media--top { margin: -30px -30px 26px; height: 180px; }
.card__media--top img { width: 100%; height: 100%; object-fit: cover; }
.card--accent { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 60%); }
/* living detail: a slow glow on the feature card */
.card--feature::after {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 60%; height: 80%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .16), transparent);
  animation: glow 9s ease-in-out infinite alternate; animation-delay: -4s;
}
@keyframes glow { from { opacity: .3; transform: translate(0, 0); } to { opacity: 1; transform: translate(-30px, -20px); } }

/* ---------- How it works ---------- */
.how { background: linear-gradient(180deg, var(--bg), var(--surface) 40%, var(--bg)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; margin-bottom: clamp(70px, 9vw, 110px); }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 10px; }
.step__num {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent); color: var(--text);
  font: 600 1.3rem/1 var(--font-head); position: relative;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 22em; margin-inline: auto; }

.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.why__media { margin: 0; position: relative; }
.why__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 3; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.why__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--accent); border-radius: var(--radius); opacity: .5; z-index: -1;
}
.why__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 24px; }
.why__list li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list strong { color: var(--text); font-weight: 700; }

/* ---------- Approvals ---------- */
.approvals__head { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.approvals__head h2 { margin-bottom: 0; }
.approvals__head .section__intro { max-width: 24em; font-size: .98rem; }
.approvals__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doc {
  position: relative; height: 360px; border-radius: var(--radius); overflow: hidden;
  background: #E9EDF3; border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transition: transform .4s var(--ease);
}
.doc:nth-child(even) { transform: translateY(26px); }
.doc:hover { transform: translateY(-6px); }
.doc:nth-child(even):hover { transform: translateY(20px); }
.doc img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc__label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(8, 14, 28, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .9rem; font-weight: 700;
}
.doc__label::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Contact ---------- */
.contact { background: radial-gradient(60% 60% at 15% 30%, rgba(46, 84, 160, .18), transparent 70%), var(--bg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__info h2 { margin-bottom: 18px; }
.pin { display: inline-block; width: .62em; vertical-align: -.02em; margin-right: .3em; transform-origin: 50% 100%; opacity: .25; transform: translateY(-14px) scale(.85); transition: opacity .5s, transform .6s var(--ease); }
.pin svg { width: 100%; height: auto; display: block; }
.pin.landed { opacity: 1; transform: none; }
.contact__list { margin-top: 34px; }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__k { color: var(--muted); font-size: .88rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.contact__list a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--accent); }

.glass {
  position: relative; overflow: hidden;
  background: rgba(22, 39, 69, .55);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  backdrop-filter: blur(22px) saturate(1.18); -webkit-backdrop-filter: blur(22px) saturate(1.18);
  box-shadow: 0 24px 80px rgba(0,0,0,.32); border-radius: 24px;
}
.glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 38%, rgba(var(--accent-rgb), .05)); }
.glass > * { position: relative; z-index: 2; }
.contact__panel { padding: clamp(24px, 4vw, 40px); }

.form__row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form label { font-size: .9rem; font-weight: 700; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: 500 1rem/1.4 var(--font); color: var(--text);
  background: rgba(10, 20, 38, .6); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23A7B2C8' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.form select option { background: var(--surface); color: var(--text); }
.form input::placeholder, .form textarea::placeholder { color: #6F7C96; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(110, 155, 255, .2); }
.form [aria-invalid="true"] { border-color: var(--accent); }
.form__error { color: #FF8A98; font-size: .92rem; margin: -4px 0 14px; }
.form__fine { color: var(--muted); font-size: .82rem; margin-top: 14px; text-align: center; }
.form__success h3 { font-size: 1.8rem; margin-bottom: 14px; }
.form__success p { color: var(--muted); margin-bottom: 14px; }
.form__success a { color: var(--text); }
.form__success:focus { outline: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #08101F; padding: 64px 0 28px; color: var(--muted); font-size: .95rem; position: relative; z-index: 2; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer__logo { height: 46px; width: auto; margin-bottom: 16px; }
.footer__slogan { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--text); }
.footer__h { color: var(--text); font-weight: 700; margin-bottom: 10px; }
.footer a { text-decoration: none; line-height: 2; }
.footer a:hover { color: var(--text); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; font-size: .86rem; }

/* ---------- Entrances (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .doc[data-reveal].in:nth-child(even) { transform: translateY(26px); }
.js .doc[data-reveal].in:nth-child(even):hover { transform: translateY(20px); }
.js .doc[data-reveal].in:hover { transform: translateY(-6px); }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { position: absolute; right: -120px; top: 50%; width: 520px; transform: translateY(-50%); opacity: .45; z-index: -1; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card--feature { grid-column: span 1; }
  .card--feature { grid-column: span 2; }
  .approvals__row { grid-template-columns: repeat(2, 1fr); }
  .doc:nth-child(even), .js .doc[data-reveal].in:nth-child(even) { transform: none; }
  .why { grid-template-columns: 1fr; }
  .why__media { max-width: 520px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: span 2; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(16, 29, 53, .7); cursor: pointer;
  }
  .menu-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--pad) 24px; background: rgba(10, 20, 38, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 16px; }
  .site-header.menu-open { background: rgba(10, 20, 38, .97); }
  .brand img { height: 36px; }

  .hero { padding: 110px 0 64px; min-height: auto; }
  .hero__art { width: 380px; right: -150px; top: 30%; opacity: .3; }
  .hero__actions .btn { flex: 1 1 100%; }
  .trust__list { flex-direction: column; gap: 10px; }
  .bento { grid-template-columns: 1fr; }
  .card, .card--feature, .card--accent { grid-column: span 1; }
  .card { padding: 26px; }
  .card--feature { flex-direction: column; padding: 0; }
  .card--feature .card__media { min-height: 200px; height: 200px; }
  .card--feature .card__body { padding: 26px; }
  .card__media--top { margin: -26px -26px 22px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .step { padding: 0; }
  .why__media::before { inset: 12px -10px -12px 12px; }
  .approvals__row { grid-template-columns: repeat(4, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .doc { scroll-snap-align: start; height: 340px; }
  .form__grid { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > :first-child { grid-column: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .globe__arc { stroke-dashoffset: 0; }
  .globe__pin { opacity: 1; }
  .pin { opacity: 1; transform: none; }
}
