/* Megalith Technology — shared stylesheet
   Extracted from index.html inline <style> so new landing pages (M2 batch)
   can reuse the exact same design system without duplicating ~400 lines per page.
   index.html itself is UNCHANGED and still uses its own inline <style> block —
   this file is additive only, referenced by the new /*.html pages. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:       #0b1f3a;
  --navy-mid:   #132a4e;
  --blue:       #1a56db;
  --blue-light: #2d74f5;
  --blue-pale:  #eff6ff;
  --blue-border:#bfdbfe;
  --gold:       #c9922a;
  --gold-pale:  #fef9ee;
  --teal:       #0891b2;
  --teal-pale:  #ecfeff;
  --green:      #059669;
  --green-pale: #ecfdf5;
  --amber:      #d97706;
  --amber-pale: #fffbeb;
  --purple:     #7c3aed;
  --purple-pale:#f5f3ff;
  --slate-900:  #0f172a;
  --slate-700:  #334155;
  --slate-500:  #64748b;
  --slate-300:  #cbd5e1;
  --slate-100:  #f1f5f9;
  --slate-50:   #f8fafc;
  --white:      #ffffff;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--slate-700); background: var(--white); line-height: 1.65; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; color: var(--slate-900); }

/* ── SKIP NAV ── */
.skip-nav { position: absolute; top: -100%; left: 1rem; background: var(--navy); color: white; padding: 0.5rem 1.25rem; z-index: 9999; border-radius: 0 0 10px 10px; transition: top 0.2s; text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.skip-nav:focus { top: 0; }

/* ── FOCUS ── */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--slate-50); } ::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15,23,42,0.07);
  box-shadow: 0 1px 20px rgba(0,0,0,0.05);
}
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; height: 72px; padding: 0 2.5rem; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; margin-right: auto; }
.nav-logo img { height: 40px; width: auto; border-radius: 8px; display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.nav-logo-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.875rem; color: var(--navy); letter-spacing: 0.06em; text-transform: uppercase; }
.nav-logo-sub { font-size: 0.625rem; color: var(--slate-500); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { color: var(--slate-500); text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.2s; letter-spacing: 0.01em; }
.nav-links a:hover { color: var(--blue); background: var(--blue-pale); }
.nav-links a.active { color: var(--blue); background: var(--blue-pale); }
.nav-cta { margin-left: 1rem; background: var(--navy) !important; color: white !important; padding: 0.55rem 1.4rem !important; border-radius: 8px !important; font-weight: 600 !important; font-size: 0.875rem !important; letter-spacing: 0.02em !important; transition: all 0.2s !important; }
.nav-cta:hover { background: var(--blue) !important; transform: translateY(-1px) !important; box-shadow: 0 4px 16px rgba(26,86,219,0.3) !important; }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 8px; border: none; background: none; border-radius: 8px; transition: background 0.2s; }
.hamburger:hover { background: var(--blue-pale); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(15,23,42,0.09);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; font-size: 1rem; border-radius: 10px; }
  .nav-cta { margin-left: 0 !important; margin-top: 0.5rem; text-align: center; }
}

/* ── SECTION BASE ── */
.section { padding: 7rem 2.5rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.75rem;
}
.section-label::before { content: ''; display: block; width: 18px; height: 2px; background: var(--blue); border-radius: 1px; }
.section-title { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--navy); }
.section-desc { font-size: 1.05rem; color: var(--slate-500); max-width: 600px; line-height: 1.75; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-label { margin: 0 auto 0.75rem; }
.section-header .section-desc { margin: 0 auto; }
.bg-subtle { background: var(--slate-50); }

/* ── HERO (inner page variant, shorter than homepage) ── */
.page-hero {
  min-height: 60vh;
  background: linear-gradient(155deg, #e8f0fe 0%, #f0f7ff 40%, #f8fafc 75%, #ffffff 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 9rem 2.5rem 5rem;
}
.page-hero::before {
  content: ''; position: absolute; top: -10%; right: -5%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26,86,219,0.06) 0%, transparent 65%);
  border-radius: 50%;
}
.page-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb-nav { font-size: 0.8rem; color: var(--slate-500); margin-bottom: 1.5rem; }
.breadcrumb-nav a { color: var(--blue); text-decoration: none; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: white; border: 1.5px solid var(--blue-border);
  color: var(--blue); font-size: 0.7rem; font-weight: 700;
  padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(26,86,219,0.1);
}
.hero-eyebrow-dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }
.page-hero h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.15; font-weight: 700; margin-bottom: 1.5rem; color: var(--navy); }
.page-hero-sub { font-size: 1.05rem; color: var(--slate-500); max-width: 700px; margin-bottom: 2.5rem; line-height: 1.85; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--navy); color: white;
  padding: 0.9rem 2.2rem; border-radius: 10px; font-weight: 600; font-size: 0.925rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.25s; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(11,31,58,0.2);
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,219,0.3); }
.btn-outline {
  background: white; color: var(--navy);
  padding: 0.9rem 2.2rem; border-radius: 10px; font-weight: 600; font-size: 0.925rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--slate-300); transition: all 0.25s; cursor: pointer;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }

/* ── CONTENT BODY (article-style sections) ── */
.content-body { max-width: 820px; margin: 0 auto; }
.content-body h2 { font-size: 1.6rem; margin: 3rem 0 1.1rem; color: var(--navy); }
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { font-size: 1.15rem; margin: 2rem 0 0.75rem; color: var(--navy); }
.content-body p { font-size: 1rem; color: var(--slate-700); line-height: 1.9; margin-bottom: 1.25rem; }
.content-body ul, .content-body ol { margin: 0 0 1.25rem 1.5rem; }
.content-body li { font-size: 1rem; color: var(--slate-700); line-height: 1.85; margin-bottom: 0.5rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 2.5rem 0; }
.stat-box { background: var(--blue-pale); border: 1px solid var(--blue-border); border-radius: 14px; padding: 1.4rem 1.5rem; }
.stat-box-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--blue); line-height: 1.2; }
.stat-box-label { font-size: 0.8rem; color: var(--slate-500); margin-top: 0.3rem; }
.step-list { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0; }
.step-item { display: flex; gap: 1.25rem; background: white; border: 1px solid rgba(15,23,42,0.06); border-radius: 16px; padding: 1.5rem 1.75rem; box-shadow: 0 2px 12px rgba(0,0,0,0.03); }
.step-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--blue); flex-shrink: 0; width: 2.5rem; }
.step-item h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.step-item p { font-size: 0.9rem; color: var(--slate-500); margin-bottom: 0; line-height: 1.75; }

/* ── FAQ ── */
.faq-list { max-width: 820px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--slate-100); border-radius: 14px; background: white; overflow: hidden; transition: box-shadow 0.25s; }
.faq-item[open] { box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.faq-q { cursor: pointer; padding: 1.35rem 1.75rem; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background 0.2s; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--blue-pale); }
.faq-q::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--blue); flex-shrink: 0; transition: transform 0.25s; line-height: 1; }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 1rem 1.75rem 1.5rem; font-size: 0.9rem; color: var(--slate-500); line-height: 1.85; border-top: 1px solid var(--slate-100); }

/* ── RELATED SERVICES ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.related-card { background: white; border: 1px solid rgba(15,23,42,0.06); border-radius: 16px; padding: 1.5rem 1.75rem; text-decoration: none; transition: all 0.25s; box-shadow: 0 2px 12px rgba(0,0,0,0.03); display: block; }
.related-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.08); transform: translateY(-3px); border-color: var(--blue-border); }
.related-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.related-card p { font-size: 0.82rem; color: var(--slate-500); line-height: 1.6; }
.related-card span.arrow { color: var(--blue); font-size: 0.8rem; font-weight: 600; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(160deg, var(--navy) 0%, #132a4e 60%, #1a3a6b 100%);
  padding: 5rem 2.5rem; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,86,219,0.12) 0%, transparent 60%);
  border-radius: 50%;
}
.cta-band-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta-band h2 { color: white; font-size: 1.9rem; margin-bottom: 1rem; }
.cta-band p { color: #94a3b8; font-size: 1rem; margin-bottom: 2rem; line-height: 1.75; }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: #94a3b8;
  padding: 4rem 2.5rem 2.5rem; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; align-items: start; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo img { height: 34px; border-radius: 7px; display: block; }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.footer-logo-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.875rem; color: white; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-logo-sub { font-size: 0.6rem; color: #64748b; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; }
.footer-tagline { font-size: 0.85rem; color: #7a8ea4; line-height: 1.8; max-width: 320px; }
.footer-col-title { font-size: 0.68rem; font-weight: 700; color: #93c5fd; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a { color: #8899b2; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-nav a:hover { color: white; }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-contact-item { font-size: 0.85rem; color: #8899b2; line-height: 1.6; }
.footer-contact-item strong { display: block; color: #b0bfce; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.78rem; color: #566779; }
.footer-legal { font-size: 0.75rem; color: #566779; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ── BACK TO TOP ── */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 46px; height: 46px; background: var(--navy); color: white; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; cursor: pointer; font-size: 1.1rem; opacity: 0; pointer-events: none; transform: translateY(12px); transition: all 0.3s; z-index: 999; box-shadow: 0 4px 16px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--blue); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .section { padding: 5rem 1.5rem; }
  .page-hero { padding: 8rem 1.5rem 3.5rem; }
}
