/* SFM Corporate Visa Desk — static build of the Lovable design.
   Brand: navy #0B2156, red #CB2126, white. Font: Manrope. */

:root {
  --bg: #ffffff;
  --fg: #3b4a63;
  --navy: #0b2156;
  --navy-fg: #ffffff;
  --primary: #cb2126;
  --primary-hover: #a81b20;
  --primary-fg: #ffffff;
  --ink-soft: #3f4a5f;
  --muted-fg: #5b6578;
  --border: #cdd3de;
  --input: #a9b2c1;
  --surface: #f4f6fa;
  --secondary: #f3f5f9;
  --destructive: #dc2626;
  --radius: 0.25rem;
  --max: 1440px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font);
  line-height: 1.5; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--navy); margin: 0; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--primary); color: var(--primary-fg); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 768px) { .wrap { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (min-width: 1024px) { .wrap { padding-left: 4rem; padding-right: 4rem; } }

.eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-fg); }
.eyebrow--red { color: var(--primary); }
.eyebrow--soft { color: var(--ink-soft); }
.h2 { font-size: 2.25rem; font-weight: 800; line-height: 1.15; }
@media (min-width: 768px) { .h2 { font-size: 3rem; } }
.lead { margin-top: 1.25rem; max-width: 28rem; line-height: 1.75; color: var(--ink-soft); }
.num { font-size: 0.75rem; font-weight: 700; color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; padding: 0.5rem 1.25rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform 180ms ease; }
.btn:hover svg, .btn:focus-visible svg { transform: translateX(0.2rem); }
.btn--primary { background: var(--primary); color: var(--primary-fg); box-shadow: 0 1px 2px rgba(11,33,86,.08); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn--outline { border: 1px solid rgba(203,33,38,.25); color: var(--fg); background: transparent; }
.btn--outline:hover { border-color: var(--primary); background: #f0f2f7; }
.btn--lg { height: 3rem; padding: 0 1.75rem; font-size: 0.9375rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--down svg { transform: none; }
.btn--down:hover svg { transform: translateY(0.15rem); }

/* Header */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; color: var(--navy);
  background: rgba(255,255,255,.95); border-bottom: 1px solid transparent;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(255,255,255,.9); backdrop-filter: blur(12px); } }
.site-header[data-scrolled="true"] { border-color: var(--border); box-shadow: 0 8px 24px rgba(11,33,86,.08); }
.site-header__bar { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.brand { display: flex; min-height: 2.75rem; align-items: center; gap: 0.75rem; }
.brand img { width: 3.25rem; height: 3.25rem; object-fit: contain; flex-shrink: 0; }
.brand__sep { display: none; width: 1px; height: 1.5rem; background: var(--border); }
.brand__label { display: none; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
@media (min-width: 640px) { .brand__sep, .brand__label { display: block; } }
.nav { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav-link { position: relative; font-size: 0.875rem; font-weight: 600; }
.nav-link::after { content: ""; position: absolute; inset-inline: 0; bottom: -0.55rem; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform 180ms ease; }
.nav-link[data-active="true"]::after, .nav-link:hover::after { transform: scaleX(1); }
.menu-btn { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: var(--radius); }
.menu-btn:hover { background: #f0f2f7; }
.menu-btn svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); padding: 1rem 1.25rem; box-shadow: 0 10px 30px rgba(11,33,86,.12); }
.mobile-nav[data-open="true"] { display: block; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav a.item { display: flex; min-height: 3rem; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); font-weight: 600; }
.mobile-nav a.item svg { width: 1rem; height: 1rem; }
.mobile-nav .btn { margin-top: 1rem; }

/* Hero */
.hero { border-bottom: 1px solid var(--border); padding-top: 4rem; scroll-margin-top: 4rem; }
.hero__grid { display: grid; max-width: var(--max); margin: 0 auto; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 0.92fr 1.08fr; } }
.hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 3rem 1.25rem; }
@media (min-width: 768px) { .hero__copy { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (min-width: 1024px) { .hero__copy { min-height: 660px; padding: 4rem; } }
.hero__eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero__eyebrow::before { content: ""; display: block; width: 2rem; height: 2px; background: var(--primary); }
.hero h1 { max-width: 48rem; font-size: clamp(3rem, 5vw, 5.5rem); font-weight: 800; line-height: 1.02; }
.hero h1 .accent { color: var(--primary); }
.hero__lead { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 2rem; color: var(--ink-soft); }
.hero__cta { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .hero__cta { flex-direction: row; } }
.hero__figure { position: relative; margin: 0; min-height: 420px; overflow: hidden; }
@media (min-width: 1024px) { .hero__figure { min-height: 660px; } }
.hero__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__figure figcaption { position: absolute; right: 1rem; bottom: 1rem; background: rgba(255,255,255,.9); padding: 0.5rem 0.75rem; font-size: 10px; font-weight: 600; color: var(--ink-soft); z-index: 2; }

/* Hero slideshow: crossfade + slow drift */
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1200ms ease; }
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active { animation: hero-drift 8s ease-out forwards; }
}
@keyframes hero-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
/* image-lift hover shouldn't fight the slideshow */
.hero__figure.image-lift:hover .hero-slide.is-active { transform: none; }

/* Image hover lift */
.image-lift img { transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.image-lift:hover img, .image-lift:focus-within img { transform: scale(1.035); }

/* Sections */
.section { padding-top: 4rem; padding-bottom: 4rem; scroll-margin-top: 4rem; }
@media (min-width: 1024px) { .section { padding-top: 5rem; padding-bottom: 5rem; } }
.section--navy { background: var(--navy); color: var(--navy-fg); }
.section--navy h2, .section--navy h3 { color: var(--navy-fg); }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .split { gap: 5rem; } .split--benefits { grid-template-columns: 0.75fr 1.25fr; } .split--services { grid-template-columns: 0.7fr 1.3fr; } .split--process { grid-template-columns: 0.72fr 1.28fr; gap: 2.5rem; } .split--faqs { grid-template-columns: 0.65fr 1.35fr; } .split--enquiry { grid-template-columns: 0.65fr 1.35fr; gap: 4rem; } }

/* Benefits */
.benefits { display: grid; }
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { border-top: 1px solid rgba(255,255,255,.25); padding: 1.5rem 0; }
@media (min-width: 768px) { .benefit { border-top: 0; border-left: 1px solid rgba(255,255,255,.25); padding: 1.5rem; } }
.benefit h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 700; }
.benefit p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.5rem; color: rgba(255,255,255,.8); }
.benefit .quote { margin-top: 1rem; font-size: 0.9375rem; font-style: italic; line-height: 1.5rem; color: rgba(255,255,255,.65); }
.proof { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; list-style: none; margin: 3rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(255,255,255,.25); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.85); }
.proof li { display: flex; align-items: center; gap: 0.6rem; }
.proof li::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* Services */
.services-list { border-top: 1px solid var(--border); }
.service-row { display: grid; gap: 0.5rem; border-bottom: 1px solid var(--border); padding: 1.5rem 0; transition: background-color 180ms ease, padding-inline 180ms ease; }
@media (min-width: 640px) { .service-row { grid-template-columns: 3rem 0.9fr 1.1fr; gap: 1.5rem; } }
.service-row:hover { background: rgba(244,246,250,.78); padding-inline: 1rem; }
.service-row h3 { font-size: 1.125rem; font-weight: 700; }
.service-row p { line-height: 1.75; color: var(--muted-fg); }
.dest-head { display: flex; flex-direction: column; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 3rem; }
@media (min-width: 640px) { .dest-head { flex-direction: row; } }
.dest-head .t { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.dest-head .s { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-fg); }
.dest-head .note { max-width: 36rem; font-size: 0.75rem; line-height: 1.25rem; color: var(--muted-fg); }
.dest-grid { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 1024px) { .dest-grid { grid-template-columns: repeat(4, 1fr); } }
.dest { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0.375rem; background: var(--secondary); }
.dest img { width: 100%; height: 100%; object-fit: cover; }
.dest figcaption { position: absolute; inset-inline: 0; bottom: 0; background: rgba(11,33,86,.9); padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 700; color: var(--navy-fg); }
.credit { margin-top: 0.75rem; font-size: 10px; color: var(--muted-fg); }

/* Process */
.process { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .process { grid-template-columns: 0.85fr 1.15fr; } }
.tabs { border-top: 1px solid var(--border); }
.tab {
  display: flex; min-height: 4rem; width: 100%; align-items: center; gap: 1rem; border-bottom: 1px solid var(--border);
  padding: 0 0.5rem; text-align: left; transition: background-color 180ms ease; color: var(--navy);
}
.tab:hover { background: var(--bg); }
.tab .num { color: var(--muted-fg); }
.tab .title { font-weight: 700; }
.tab svg { margin-left: auto; width: 1rem; height: 1rem; opacity: .3; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--navy-fg); }
.tab[aria-selected="true"] .num { color: var(--primary); }
.tab[aria-selected="true"] svg { opacity: 1; }
.panel { display: flex; min-height: 16rem; flex-direction: column; justify-content: space-between; border-radius: 0.375rem; background: var(--bg); padding: 1.75rem; box-shadow: 0 1px 3px rgba(11,33,86,.08); }
.panel h3 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 800; }
.panel .body { margin-top: 1rem; line-height: 1.75; color: var(--muted-fg); }
.panel .who { margin-top: 2rem; border-left: 2px solid var(--primary); padding-left: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.process-notes { display: grid; gap: 1rem; border-left: 2px solid var(--primary); padding-left: 1.5rem; font-size: 0.875rem; line-height: 1.5rem; color: var(--ink-soft); }
@media (min-width: 768px) { .process-notes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .process-notes { grid-column: 2; } }

/* FAQ accordion */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; font-size: 1rem; font-weight: 700; color: var(--navy); list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--muted-fg); transition: transform 200ms ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { max-width: 42rem; padding-bottom: 1.5rem; font-size: 1rem; line-height: 1.75rem; color: var(--ink-soft); }

/* Enquiry */
.enquiry-intro p.lead { color: var(--navy-fg); }
.notice { margin-top: 1.75rem; display: flex; gap: 0.75rem; border-top: 1px solid rgba(255,255,255,.25); padding-top: 1.5rem; font-size: 0.875rem; line-height: 1.5rem; }
.notice svg { margin-top: 2px; width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--primary); }
.card { border-radius: 0.375rem; background: var(--bg); color: var(--fg); padding: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
@media (min-width: 768px) { .card { padding: 2rem; } }
.form { display: grid; gap: 1.25rem; }
.row2 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea {
  margin-top: 0.5rem; width: 100%; border: 1px solid var(--input); border-radius: var(--radius); background: var(--bg);
  padding: 0 0.75rem; font: inherit; font-size: 0.9375rem; color: #0f172a; height: 3rem;
}
.field textarea { min-height: 7rem; padding: 0.75rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a94a6; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: var(--destructive); }
.error { margin-top: 0.5rem; font-size: 0.875rem; color: var(--destructive); }
.alert { border-left: 2px solid var(--destructive); background: rgba(220,38,38,.05); padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.5rem; }
.alert a { font-weight: 700; text-decoration: underline; }
.form-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
@media (min-width: 640px) { .form-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.form-foot .fine { max-width: 28rem; font-size: 0.75rem; line-height: 1.25rem; color: var(--muted-fg); }
.hidden { display: none !important; }

/* Success review */
.review__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.review__head h3 { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 800; }
.review__check { display: flex; width: 2.5rem; height: 2.5rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9999px; background: var(--secondary); color: var(--navy); }
.review__check svg { width: 1.25rem; height: 1.25rem; }
.review dl { display: grid; gap: 1.5rem 2rem; padding: 1.75rem 0; margin: 0; }
@media (min-width: 640px) { .review dl { grid-template-columns: 1fr 1fr; } .review .span2 { grid-column: span 2; } }
.review dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-fg); }
.review dd { margin: 0.5rem 0 0; overflow-wrap: anywhere; line-height: 1.75; color: #0f172a; }
.review__foot { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.review__foot p { font-size: 0.875rem; color: var(--muted-fg); }
.review__foot .btn { margin-top: 1.25rem; }

/* Footer */
.footer { background: var(--navy); color: var(--navy-fg); }
.footer__inner { padding-bottom: 2.25rem; }
.footer__top { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; border-top: 1px solid rgba(255,255,255,.25); padding-top: 2rem; }
@media (min-width: 768px) { .footer__top { flex-direction: row; align-items: flex-end; } }
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__logo { display: flex; width: 5rem; height: 5rem; align-items: center; justify-content: center; background: var(--bg); padding: 0.5rem; }
.footer__logo img { width: 100%; height: 100%; object-fit: contain; }
.footer__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.footer__top .btn-link { display: flex; min-height: 2.75rem; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.footer__top .btn-link svg { width: 1rem; height: 1rem; transform: rotate(180deg); }
.footer__legal { display: grid; gap: 0.75rem; padding-top: 1.5rem; font-size: 0.75rem; line-height: 1.5rem; }
@media (min-width: 768px) { .footer__legal { grid-template-columns: 1fr 1fr; } .footer__legal p:last-child { text-align: right; } }

/* Reveal motion (only when JS is ready and motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
  .js-ready .reveal[data-visible="true"] { opacity: 1; transform: none; }
  .js-ready .reveal > .stagger { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
  .js-ready .reveal[data-visible="true"] > .stagger { opacity: 1; transform: none; }
  .js-ready .reveal[data-visible="true"] > .stagger:nth-child(2) { transition-delay: 80ms; }
  .js-ready .reveal[data-visible="true"] > .stagger:nth-child(3) { transition-delay: 150ms; }
  .js-ready .reveal[data-visible="true"] > .stagger:nth-child(4) { transition-delay: 220ms; }
  /* Hero copy: reveal immediately on load, slightly longer stagger for a confident entrance */
  .js-ready .hero__copy.reveal[data-visible="true"] > .stagger:nth-child(2) { transition-delay: 160ms; }
  .js-ready .hero__copy.reveal[data-visible="true"] > .stagger:nth-child(3) { transition-delay: 300ms; }
  .js-ready .hero__copy.reveal[data-visible="true"] > .stagger:nth-child(4) { transition-delay: 440ms; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
