/* Metora Solutions - fresh federal-professional design
   Deep navy/slate palette, restrained gold accent. Mobile-first. */

:root {
  --navy: #0e2140;
  --navy-2: #14305c;
  --navy-3: #1b3a6b;
  --slate: #3b4a63;
  --text: #1e293b;
  --muted: #5b6b84;
  --gold: #b8860b;
  --gold-light: #d9a62e;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --bg-dark: #0b1a33;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(14, 33, 64, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-2); }
img { max-width: 100%; height: auto; display: block; }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8em;
}
.lead { font-size: 1.15rem; color: var(--slate); max-width: 720px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: #9a6f09; border-color: #9a6f09; color: #fff; }
.btn-outline { border-color: var(--navy-2); color: var(--navy-2); background: transparent; }
.btn-outline:hover { background: var(--navy-2); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--bg-alt); }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand-logo { height: 60px; width: auto; }
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 10px 9px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-2); }
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px 20px; }
.site-nav li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.site-nav a, .site-nav .dropdown-toggle {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 4px;
  font-weight: 600;
  background: none;
  border: none;
  font-size: 1rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}
.site-nav a:hover, .site-nav .dropdown-toggle:hover { color: var(--gold-light); }
.site-nav .btn-sm { margin-top: 10px; text-align: center; }
.dropdown { display: none; padding: 0 0 0 16px !important; }
.has-dropdown.open .dropdown { display: block; }
.has-dropdown.open .dropdown-toggle { color: var(--gold-light); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: #fff;
  padding: 72px 0;
}
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 0.5em; }
.hero .lead { color: #cbd5e1; }
.hero .accent-rule { width: 72px; height: 4px; background: var(--gold); margin: 0 0 24px; border: none; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.page-hero { padding: 56px 0; }
.page-hero h1 { font-size: 2rem; }

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.cards { grid-template-columns: 1fr; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { font-weight: 700; color: var(--gold); text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }
.stat-grid { grid-template-columns: repeat(2, 1fr); text-align: center; }
.stat { padding: 20px 12px; }
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--navy); display: block; }
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* Split layout */
.split { display: grid; gap: 32px; align-items: center; }
.split img.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.split video.rounded { width: 100%; aspect-ratio: 9 / 8; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* Pillars / steps */
.pillar { border-left: 4px solid var(--gold); padding: 4px 0 4px 20px; margin-bottom: 28px; }
.pillar h3 { margin-bottom: 0.3em; }
.pillar ul { margin: 0.5em 0 0; padding-left: 1.2em; color: var(--slate); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 24px 76px;
  position: relative;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 20px 0 20px 24px; border-left: 3px solid var(--border); position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 26px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline .timeline-date { font-weight: 800; color: var(--navy); }

/* Values */
.value-grid { grid-template-columns: 1fr; }

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.faq summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq .faq-body { padding: 0 22px 20px; color: var(--slate); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbd5e1; max-width: 640px; margin: 0 auto 24px; }

/* Contact form */
.contact-section .form-wrap { max-width: 760px; }
form .form-grid { display: grid; gap: 16px; margin-bottom: 16px; }
form label { display: block; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
form input[type="text"], form input[type="email"], form select, form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font);
  background: #fff;
  color: var(--text);
}
form input:focus, form select:focus, form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.hidden { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-alt { margin-top: 20px; color: var(--muted); }

/* Badges */
.badge-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.badge-row img { height: 72px; width: auto; }

/* Video */
.video-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-wrap video { width: 100%; display: block; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #cbd5e1; padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 24px 20px; font-size: 0.88rem; color: #94a3b8; }
.footer-bottom p { margin-bottom: 0.5em; }
.footer-bottom .credit a { color: #cbd5e1; }

/* Policy pages */
.policy { max-width: 820px; }
.policy h2 { margin-top: 1.8em; }
.policy ul { padding-left: 1.3em; }
.policy li { margin-bottom: 0.5em; }

/* App cards */
.app-card .app-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.6em; }
.app-note {
  background: #fffbeb;
  border: 1px solid #f5d67b;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  color: var(--slate);
}

/* Slim page */
.slim { max-width: 720px; margin: 0 auto; text-align: center; }
.slim .hero-cta { justify-content: center; }

/* Larger screens */
@media (min-width: 768px) {
  h1 { font-size: 2.6rem; }
  .hero h1 { font-size: 3rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  form .form-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; position: static; }
  .site-nav ul { display: flex; align-items: center; gap: 6px; padding: 0; }
  .site-nav li { border: none; position: relative; }
  .site-nav a, .site-nav .dropdown-toggle { padding: 10px 12px; }
  .site-nav .btn-sm { margin-top: 0; margin-left: 8px; }
  .has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy-2);
    min-width: 300px;
    border-radius: 0 0 8px 8px;
    padding: 8px 0 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  }
  .has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { display: block; }
  .has-dropdown .dropdown a { padding: 10px 18px; white-space: normal; }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Exchange newsletter signup */
.exchange-signup { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 24px; }
.exchange-signup label { flex: 1 1 240px; }
.exchange-signup p { margin: 0; }
.signup-alt { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

/* Book-a-call popup */
.ms-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ms-modal[hidden] { display: none; }
.ms-modal-backdrop { position: absolute; inset: 0; background: rgba(4, 20, 45, 0.7); }
.ms-modal-box { position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 720px; max-height: 90vh; padding: 28px 28px 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); display: flex; flex-direction: column; overflow-y: auto; }
.ms-modal-box h2 { margin: 0 0 4px; font-size: 26px; color: #04142d; }
.ms-modal-sub { margin: 0 0 16px; color: #5a6b85; font-size: 15px; }
.ms-modal-box iframe { width: 100%; height: 520px; border: 0; border-radius: 8px; background: #f4f7fb; }
.ms-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #5a6b85; }
.ms-modal-close:hover { color: #04142d; }
.ms-modal-fallback { margin: 12px 0 0; font-size: 13px; color: #5a6b85; text-align: center; }
.ms-book-durations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 8px; }
.ms-book-duration { background: #f4f7fb; border: 2px solid transparent; border-radius: 12px; padding: 18px 8px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color 0.15s, background 0.15s; }
.ms-book-duration img { width: 64px; height: 64px; margin-bottom: 6px; }
.ms-book-duration strong { font-size: 28px; color: #04142d; }
.ms-book-duration span { font-size: 13px; color: #5a6b85; }
.ms-book-duration:hover { border-color: #0d9488; background: #fff; }
.ms-book-back { margin: 0 0 8px; }
.ms-book-back button { background: none; border: none; color: #0b7c72; font-size: 14px; cursor: pointer; font-family: inherit; padding: 0; }
.ms-book-back button:hover { text-decoration: underline; }
.book-call-btn { margin-right: 8px; }
@media (max-width: 600px) {
  .ms-modal-box { padding: 20px 16px 14px; }
  .ms-modal-box iframe { height: 440px; }
  .ms-book-durations { grid-template-columns: repeat(2, 1fr); }
}
