/* QUANTARA Services — site styles */
:root {
  --navy-950: #041530;
  --navy-900: #061e4a;
  --blue-900: #0b3d91;
  --blue-600: #2762c7;
  --green: #00a676;
  --green-soft: #e6f7f1;
  --ink: #0b1a33;
  --ink-2: #44526b;
  --ink-3: #6b778c;
  --line: #e2e7ef;
  --bg-soft: #f4f7fc;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --display: "Cabinet Grotesk", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(11, 61, 145, 0.10);
  border-radius: 999px; padding: 8px 8px 8px 16px;
  box-shadow: 0 8px 30px rgba(6, 30, 74, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--blue-900); letter-spacing: 0.01em; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; border: 1px solid var(--line); }
.brand-mark svg { width: 26px; height: 26px; }
.nav-links { display: none; gap: 2px; align-items: center; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: rgba(11, 26, 51, 0.75); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { background: var(--blue-900); color: #fff; }
.nav .nav-cta { display: none; }
.menu-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--blue-900); color: #fff; display: grid; place-items: center;
}
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { display: none; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; box-shadow: 0 16px 40px rgba(6, 30, 74, 0.12); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.mobile-menu a.active, .mobile-menu a:hover { background: var(--bg-soft); color: var(--blue-900); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav .nav-cta { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .15s, background .2s, box-shadow .2s; border: 0; cursor: pointer; font-family: var(--body); }
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 24px rgba(0, 166, 118, 0.3); }
.btn-green:hover { background: #008f66; }
.btn-blue { background: var(--blue-900); color: #fff; }
.btn-blue:hover { background: var(--navy-900); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-outline { background: #fff; color: var(--blue-900); border: 1px solid var(--line); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(39, 98, 199, 0.45), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(0, 166, 118, 0.18), transparent 60%),
    var(--navy-900);
  margin-top: -84px; padding: 150px 0 90px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06);
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,166,118,0.2); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin: 22px 0 22px; }
.hero h1 .blue { color: #6fa1ff; }
.hero h1 .green { color: #2fd39f; }
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, 0.78); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 600; }
.hero-chips span { display: inline-flex; align-items: center; gap: 8px; }
.hero-chips svg { width: 16px; height: 16px; color: var(--green); }

.hero-card {
  border-radius: var(--radius-lg); padding: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.hero-card h3 { font-size: 22px; }
.hero-card .sub { color: rgba(255,255,255,0.65); font-size: 14px; margin-top: 4px; }
.flow { margin-top: 22px; display: grid; gap: 10px; }
.flow-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); font-weight: 600; font-size: 15px; }
.flow-row .n { font-family: var(--display); font-size: 13px; color: #2fd39f; width: 24px; }
.flow-row .ok { margin-left: auto; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #2fd39f; background: rgba(0,166,118,0.15); padding: 3px 9px; border-radius: 999px; }
.hero-card .tag { margin-top: 18px; text-align: center; font-size: 12px; letter-spacing: 0.3em; color: rgba(255,255,255,0.55); font-weight: 700; }

/* Page hero (inner pages) */
.page-hero { color: #fff; background: radial-gradient(800px 400px at 90% 0%, rgba(39, 98, 199, 0.45), transparent 60%), var(--navy-900); margin-top: -84px; padding: 150px 0 80px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); margin-top: 18px; }
.page-hero h1 .green { color: #2fd39f; }
.page-hero p { margin-top: 20px; color: rgba(255, 255, 255, 0.78); max-width: 680px; font-size: 18px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy-900); color: #fff; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.section.dark .section-head p { color: rgba(255,255,255,0.7); }
.head-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.head-row .section-head { margin-bottom: 0; }

.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(6, 30, 74, 0.08); border-color: rgba(11, 61, 145, 0.2); }
.card .num { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--blue-600); }
.card h3 { font-size: 21px; margin-top: 14px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.card .icon svg { width: 22px; height: 22px; }
.card .icon + h3 { margin-top: 18px; }
.section.dark .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.section.dark .card p { color: rgba(255,255,255,0.7); }
.section.dark .card .num { color: #2fd39f; }

/* Principles */
.principle { padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.principle .big { font-family: var(--display); font-size: 56px; font-weight: 800; color: var(--green); line-height: 1; }
.principle h3 { font-size: 24px; margin-top: 18px; }
.principle p { margin-top: 12px; color: var(--ink-2); }

/* Process steps */
.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); position: relative; }
.step .n { font-family: var(--display); font-size: 34px; font-weight: 800; color: #2fd39f; line-height: 1; }
.step h3 { font-size: 19px; margin-top: 14px; }
.step p { margin-top: 8px; color: rgba(255,255,255,0.7); font-size: 14.5px; }
.note { margin-top: 24px; font-size: 14px; color: rgba(255,255,255,0.6); }

/* Industries */
.chips { display: grid; gap: 12px; }
@media (min-width: 640px) { .chips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .chips { grid-template-columns: repeat(4, 1fr); } }
.chip { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-weight: 700; }
.chip .n { font-family: var(--display); font-size: 13px; color: var(--blue-600); }

/* Roadmap */
.road { padding: 26px; border-radius: var(--radius-lg); border: 1px dashed rgba(11, 61, 145, 0.3); background: #fff; }
.road .top { display: flex; justify-content: space-between; align-items: center; }
.road .id { font-family: var(--display); font-weight: 800; color: var(--blue-600); }
.badge { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; padding: 4px 10px; border-radius: 999px; background: #fff4e0; color: #9a6200; }
.road h3 { font-size: 19px; margin-top: 16px; }
.road p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 22px; }
.faq details[open] { border-color: rgba(11, 61, 145, 0.25); box-shadow: 0 10px 30px rgba(6, 30, 74, 0.06); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--blue-600); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* CTA band */
.cta {
  border-radius: 28px; padding: 56px 32px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 80% 0%, rgba(0,166,118,0.35), transparent 60%), linear-gradient(135deg, var(--blue-900), var(--navy-900));
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); max-width: 760px; margin: 12px auto 0; }
.cta .hero-actions { justify-content: center; }

/* About */
.two-col { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1.1fr 0.9fr; } }
.lead-text p + p { margin-top: 18px; }
.lead-text p { font-size: 18px; color: var(--ink-2); }
.profile { border-radius: var(--radius-lg); padding: 30px; background: var(--navy-900); color: #fff; }
.profile h3 { font-size: 24px; }
.profile .tag { color: #2fd39f; font-weight: 700; margin-top: 6px; }
.profile ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.profile li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.06); font-weight: 600; }
.profile li span { font-family: var(--display); color: #2fd39f; font-size: 13px; }
.mv { display: grid; gap: 18px; }
@media (min-width: 768px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv .card h3 { margin-top: 0; font-size: 26px; }
.mv .card p { font-size: 17px; }

/* Careers */
.roles { display: grid; gap: 12px; }
.role { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.role .id { font-family: var(--display); font-weight: 800; color: var(--blue-600); width: 36px; }
.role h3 { font-size: 18px; flex: 1 1 240px; }
.role .meta { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.role .btn { margin-left: auto; }

/* Contact */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.channels { border-radius: var(--radius-lg); background: var(--navy-900); color: #fff; padding: 30px; }
.channels h3 { font-size: 22px; }
.channel { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.channel:last-child { border-bottom: 0; padding-bottom: 0; }
.channel .k { font-size: 11px; font-weight: 800; letter-spacing: 0.2em; color: #2fd39f; }
.channel .v { margin-top: 4px; font-weight: 600; }
.channel a.v { display: inline-block; }
.channel a.v:hover { color: #6fa1ff; }
.response { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: rgba(0,166,118,0.14); font-size: 14px; }
.response b { color: #2fd39f; }

.form { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); padding: 30px; }
.form h3 { font-size: 24px; }
.form .sub { color: var(--ink-2); margin-top: 6px; }
.fields { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-soft);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(39, 98, 199, 0.12); }
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { margin-top: 20px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: var(--green-soft); color: #00684a; }
.form-status.err { display: block; background: #fdecec; color: #a12a2a; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.75); padding: 70px 0 30px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 0.8fr 1.2fr; } }
.site-footer .brand { color: #fff; }
.site-footer .about { margin-top: 16px; max-width: 380px; font-size: 15px; }
.site-footer h4 { font-family: var(--body); font-size: 12px; letter-spacing: 0.2em; color: #2fd39f; font-weight: 800; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom .tag { letter-spacing: 0.3em; font-weight: 700; }

/* Floating buttons */
.float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.float a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.25); transition: transform .15s; }
.float a:hover { transform: scale(1.06); }
.float .wa { background: #25d366; }
.float .call { background: var(--blue-900); }
.float svg { width: 24px; height: 24px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* ---------- Returns recovery flow ---------- */
.rflow { display: grid; gap: 14px; }
@media (min-width: 640px) { .rflow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rflow { grid-template-columns: repeat(4, 1fr); } }
.rstep { padding: 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); position: relative; }
.rstep .n { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--blue-600); }
.rstep h3 { font-size: 19px; margin-top: 10px; }
.rstep p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
@media (min-width: 1024px) {
  .rstep:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--blue-600); border-right: 2px solid var(--blue-600); transform: translateY(-50%) rotate(45deg); }
}
.rarrow { display: flex; justify-content: center; margin: 18px 0; color: var(--green); }
.rarrow svg { width: 28px; height: 28px; transform: rotate(90deg); }
.routs { display: grid; gap: 14px; }
@media (min-width: 768px) { .routs { grid-template-columns: repeat(3, 1fr); } }
.rout { padding: 22px 24px; border-radius: var(--radius); background: var(--green-soft); border: 1px solid rgba(0, 166, 118, 0.25); }
.rout h3 { font-size: 19px; color: #00684a; }
.rout p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Two service groups ---------- */
.svc-groups { display: grid; gap: 18px; }
@media (min-width: 960px) { .svc-groups { grid-template-columns: 1fr 1fr; } }
.svc-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.svc-group h3 { font-size: 26px; margin-top: 10px; }
.svc-group ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.svc-group li { display: flex; gap: 12px; align-items: flex-start; }
.svc-group li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--green); }
.svc-group li span { color: var(--ink-2); font-size: 15px; min-width: 0; }
.svc-group li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* ---------- Overseas brands ---------- */
.ov-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .ov-grid { grid-template-columns: 1.1fr 0.9fr; } }
.ov-pts { display: grid; gap: 14px; }
@media (min-width: 640px) { .ov-pts { grid-template-columns: 1fr 1fr; } }
.ov-pt { display: flex; gap: 12px; padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.ov-pt svg { width: 20px; height: 20px; flex-shrink: 0; color: #2fd39f; margin-top: 3px; }
.ov-pt h3 { font-size: 18px; }
.ov-pt p { margin-top: 6px; color: rgba(255,255,255,0.7); font-size: 14.5px; }
.ov-steps { padding: 28px; border-radius: var(--radius-lg); background: #fff; color: var(--ink); }
.ov-steps ol { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 18px; }
.ov-steps li { display: flex; gap: 14px; }
.ov-steps .n { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--blue-600); width: 32px; flex-shrink: 0; line-height: 1.2; }
.ov-steps h3 { font-size: 18px; }
.ov-steps p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }

.chip { justify-content: flex-start; }
.response + .response { margin-top: 10px; }
