/* ==========================================================================
   Museloft Global Solutions
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --navy-3: #1b3f72;
  --gold: #c9a24a;
  --gold-2: #e0bd6b;
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 58, .35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1 var(--sans); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(201, 162, 74, .8); }
.btn-gold:hover { background: var(--gold-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.eyebrow-light { color: var(--gold-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(11, 31, 58, .3); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--navy); line-height: 1; }
.brand-text span { display: block; font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand-light { color: var(--navy-3); }
.brand-light .brand-text { color: #fff; }
.brand-light .brand-text span { color: rgba(255, 255, 255, .6); }

.site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .78); padding: 110px 0 130px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(201, 162, 74, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(27, 63, 114, .9), transparent 70%),
    linear-gradient(160deg, #0b1f3a 0%, #0e2748 60%, #0b1f3a 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.1rem); margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 500; }
.lead { font-size: 1.17rem; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 32px; list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero-trust strong { color: #fff; }

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.hc-head { display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 600; margin-bottom: 18px; }
.hc-pill { font-size: .78rem; background: rgba(201, 162, 74, .18); color: var(--gold-2); padding: 5px 12px; border-radius: 999px; }
.hc-chart { width: 100%; height: auto; }
.hc-line { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 2.2s .3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hc-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.hc-stages div { background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 12px; color: #fff; font-weight: 600; font-size: .92rem; }
.hc-stages span { display: block; color: var(--gold-2); font-size: .72rem; letter-spacing: .1em; margin-bottom: 2px; }

/* ---------- Stats ---------- */
.stats { position: relative; margin-top: -64px; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 0;
  max-width: calc(var(--container) - 48px);
}
.stat { padding: 34px 28px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-label { font-size: .92rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, .75); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { font-size: 1.08rem; }
.section-head-light h2 { color: #fff; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--navy-3)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(201, 162, 74, .12); display: grid; place-items: center; margin-bottom: 22px; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card p { font-size: .98rem; }
.card ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.card li { font-size: .92rem; color: var(--ink); padding: 4px 0 4px 22px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 13px; width: 10px; height: 2px; background: var(--gold); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 38px; left: 6%; right: 6%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); opacity: .5; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: 0 1px 0 var(--line); }
.step-num {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); color: var(--gold-2); font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 20px; box-shadow: 0 0 0 6px var(--bg-alt);
}
.step p { font-size: .97rem; margin: 0; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-panel {
  position: relative; border-radius: 22px; padding: 56px 46px; color: #fff; overflow: hidden;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(201, 162, 74, .35), transparent 60%),
    linear-gradient(150deg, var(--navy-3), var(--navy));
  box-shadow: var(--shadow-lg);
  min-height: 440px; display: flex; flex-direction: column; justify-content: center;
}
.about-panel::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border: 2px solid rgba(201, 162, 74, .35); border-radius: 50%; }
.about-years { font-family: var(--serif); font-size: 7rem; line-height: 1; font-weight: 700; color: var(--gold-2); }
.about-years sup { font-size: .45em; vertical-align: top; position: relative; top: .3em; }
.about-years-label { font-size: 1.1rem; max-width: 260px; margin: 8px 0 34px; color: rgba(255, 255, 255, .85); }
.about-panel blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; padding-left: 20px; border-left: 3px solid var(--gold); max-width: 380px; }

.checks { list-style: none; padding: 0; margin: 26px 0 34px; }
.checks li { position: relative; padding-left: 38px; margin-bottom: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks strong { color: var(--ink); }

/* ---------- Industries ---------- */
.industries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.industries li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 12px;
  transition: border-color .2s ease, transform .2s ease;
}
.industries li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); flex: none; }
.industries li:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Results ---------- */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 56px; }
.result { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 34px 30px; background: rgba(255, 255, 255, .03); }
.result-num { display: block; font-family: var(--serif); font-size: 3.4rem; font-weight: 700; color: var(--gold-2); line-height: 1; margin-bottom: 16px; }
.result h3 { color: #fff; }
.result p { margin: 0; font-size: .97rem; }

.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); padding: 36px 34px; color: var(--body); position: relative; }
.testimonial::before { content: "\201C"; position: absolute; top: 4px; right: 26px; font-family: var(--serif); font-size: 6rem; color: rgba(201, 162, 74, .25); line-height: 1; }
.testimonial blockquote { margin: 0 0 24px; font-size: 1.06rem; color: var(--ink); }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; font-size: .9rem; }
.testimonial figcaption strong { display: block; color: var(--ink); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-weight: 700; flex: none; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-alt); color: var(--navy);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 500; transition: transform .25s ease, background .25s ease;
}
.faq details[open] summary::after { content: "\2212"; background: var(--gold); }
.faq details p { padding-bottom: 22px; margin: 0; }

/* ---------- Contact ---------- */
.split-contact { align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-list svg { width: 42px; height: 42px; padding: 10px; flex: none; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line); fill: none; stroke: var(--navy); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a:hover { color: var(--gold); }

.contact-form { background: #fff; border-radius: 20px; padding: 38px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 400 1rem var(--sans); color: var(--ink); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .18); }
.field .invalid { border-color: #dc2626; }
.form-status { margin: 14px 0 0; font-size: .95rem; text-align: center; min-height: 1.5em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: #071528; color: rgba(255, 255, 255, .62); padding: 80px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-about { margin-top: 20px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 24px; padding-bottom: 28px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hc-line { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(11, 31, 58, .3);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav li a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 16px; width: 100%; }

  .hero { padding: 72px 0 120px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .results, .testimonials { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .about-panel { min-height: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr 1fr; }
  .industries li { padding: 14px; font-size: .9rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px 20px; }
  .stat { padding: 24px 12px; }
  .stat-num { font-size: 2.1rem; }
  .stat-label { font-size: .82rem; }
  .about-panel { padding: 40px 28px; }
  .about-years { font-size: 5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hc-stages div { padding: 10px 8px; font-size: .85rem; }
}
