/* ============================================================
   MetTechs — site styles
   Palette: slate primary, orange accent
   ============================================================ */

:root {
  /* Slate surfaces */
  --nav: #26303B;
  --hero-a: #26303B;
  --hero-b: #33404E;
  --hero-c: #3E4D5E;
  --footer: #1C232B;
  --on-dark: #EEF1F4;
  --on-dark-soft: #CFD6DD;
  --footer-text: #B8C2CC;
  --footer-muted: #97A3AF;

  /* Orange accent */
  --accent: #F28C28;
  --accent-hover: #E07B16;
  --on-accent: #2A1500;
  --accent-soft: #FFC48A;     /* labels on dark slate */
  --tag-bg: #FDEEDD;
  --tag-ink: #9E560D;
  --link: #9E560D;
  --link-hover: #7D430A;
  --solid: #33404E;
  --solid-hover: #26303B;

  /* Neutrals */
  --ink: #1F2730;
  --body: #36414D;
  --muted: #566270;
  --line: #E0E4E8;
  --field-border: #7E8A97;
  --bg: #F6F7F8;
  --bg-alt: #ECEFF2;
  --white: #FFFFFF;           /* card / surface */

  /* System */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 27, 34, .06), 0 2px 8px rgba(20, 27, 34, .05);
  --shadow-md: 0 8px 24px rgba(20, 27, 34, .12);
  --shadow-lg: 0 20px 48px rgba(20, 27, 34, .18);
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: .2s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--link-hover); }

img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tag-ink);
  margin-bottom: .75rem;
}

.lead { font-size: 1.2rem; color: var(--muted); }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section--purple {
  background: linear-gradient(135deg, var(--hero-b), var(--hero-a));
  color: var(--on-dark);
}
.section--purple h2, .section--purple h3 { color: #fff; }

.center { text-align: center; }
.measure { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-align: center;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 20px rgba(242, 140, 40, .3);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: 0 10px 26px rgba(242, 140, 40, .4); }
.btn-solid {
  background: var(--solid);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-solid:hover { background: var(--solid-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--field-border);
}
.btn-outline:hover { background: var(--tag-bg); color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
.site-header .container { max-width: 1260px; }
.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: #fff; }
.brand .logo { width: 38px; height: 38px; }
.brand small { display: block; white-space: nowrap; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  white-space: nowrap;
  color: var(--on-dark-soft);
  font-weight: 600;
  font-size: .95rem;
  padding: 9px 10px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-links a.active { color: var(--accent-soft); }
.nav-links .nav-cta .btn, .nav-links .nav-cta .btn:hover { color: var(--on-accent); }
.nav-cta { margin-left: 6px; }
.nav-cta .btn { padding: 11px 20px; font-size: .95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: #fff;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1220px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--nav);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 14px 16px 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%);
  color: var(--on-dark);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(242,140,40,.22), transparent 65%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -140px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(148,163,184,.16), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 92px 0;
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.hero .lead { color: var(--on-dark-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.15);
  color: var(--on-dark-soft);
  font-size: .93rem;
}
.hero-trust strong { color: #fff; display: block; font-size: 1.5rem; font-weight: 800; }

.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card .tick {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 64px 0; }
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(242, 140, 40, .55); }
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; color: var(--muted); font-size: .98rem; }

.icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--tag-bg);
  color: var(--tag-ink);
}
.icon svg { width: 27px; height: 27px; }
.card--feature .icon { background: var(--accent); color: var(--on-accent); }

/* Service list item with check */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 34px;
  color: var(--body);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px; height: 22px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 30px; }
.step:last-child { margin-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: .25rem; }
.step p { margin-bottom: 0; color: var(--muted); }

/* ---------- Migration flow chips ---------- */
.flow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--ink);
}
.flow .arrow { color: var(--tag-ink); font-weight: 800; }
.flow-list { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--hero-b), var(--hero-c));
  color: #fff;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-soft); max-width: 620px; margin: 0 auto 24px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.info-item .icon { margin-bottom: 0; flex: 0 0 52px; }
.info-item h4 { margin: 0 0 2px; }
.info-item p, .info-item a { margin: 0; color: var(--muted); }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field .req { color: var(--tag-ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--tag-ink);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, .35);
  background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #157a4f; }
.form-status.err { color: #b4232a; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tag-ink); font-size: 1.5rem; font-weight: 400; transition: transform var(--transition); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
  color: var(--on-dark);
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--on-dark-soft); max-width: 680px; margin: 0 auto; font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: var(--footer-text); display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.footer-brand .logo { width: 36px; height: 36px; }
.footer-about { color: var(--footer-text); font-size: .95rem; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .88rem;
  color: var(--footer-muted);
}

/* ---------- Utility ---------- */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pill {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-weight: 700;
  font-size: .82rem;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Project cards (Microsoft 365 page) ---------- */
.card .checklist { margin-top: 14px; }
.card .checklist li { padding: 5px 0 5px 32px; font-size: .95rem; }
.card .checklist li::before { top: 6px; }
.card-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .95rem; }

/* ============================================================
   Dark theme — follows the visitor's device setting
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --nav: #161B21;
    --hero-a: #161B21;
    --hero-b: #1D242C;
    --hero-c: #26303B;
    --footer: #0F1317;
    --accent: #F5963A;
    --accent-hover: #F7A85C;
    --tag-bg: #3D2A15;
    --tag-ink: #FFC48A;
    --link: #FFB36B;
    --link-hover: #FFD2A6;
    --solid: #3A4756;
    --solid-hover: #46566A;
    --ink: #E8ECF0;
    --body: #C9D1D9;
    --muted: #A3AEBA;
    --line: #2D3741;
    --field-border: #6B7784;
    --bg: #14181D;
    --bg-alt: #181D23;
    --white: #1E252D;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, .55);
  }
  .site-footer { border-top: 1px solid var(--line); }
  .form-status.ok { color: #4ADE80; }
  .form-status.err { color: #FCA5A5; }
}
