/* =========================================================
   M1 Solutions — shared styles
   Fonts: Lato   |   Brand: dark #121212, cream #f8f9f7, teal #3380a6
   ========================================================= */

:root {
  --dark: #121212;
  --dark-soft: #1d1e20;
  --cream: #f8f9f7;
  --white: #ffffff;
  --teal: #3380a6;
  --teal-dark: #2a6a8a;
  --ink: #18181a;
  --gray: #5f6272;
  --gray-light: #eceef0;
  --border: #dadce0;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 18, 18, 0.08);
  --font: 'Lato', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }

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

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

.section { padding: 84px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); }

.btn-outline { border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.brand img { height: 34px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--gray);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--ink); background: var(--gray-light); }
.nav a.active { color: var(--ink); }
.nav .btn { padding: 10px 22px; color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--cream);
  padding: 90px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--gray-light);
}
.hero-art img,
.split .panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Feature band (teal) ---------- */
.band {
  background: var(--teal);
  color: #fff;
}
.band h2 { color: #fff; }
.checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}
.checklist .tick {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.card:hover { transform: translateY(-4px); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(51, 128, 166, 0.12);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray); margin: 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto; }
.section-head .lead { margin: 0 auto; }

/* ---------- CTA (dark) ---------- */
.cta {
  background: var(--dark);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta .lead { color: rgba(255, 255, 255, 0.75); margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(51, 128, 166, 0.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(51, 128, 166, 0.1);
  color: var(--teal-dark);
  font-weight: 600;
  display: none;
}
.form-note.show { display: block; }

.contact-info { display: grid; gap: 22px; }
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-item .icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(51, 128, 166, 0.12);
  color: var(--teal);
  display: grid;
  place-items: center;
}
.info-item .icon svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 1.05rem; margin: 0 0 2px; }
.info-item a, .info-item span { color: var(--gray); }
.info-item a:hover { color: var(--teal); }

/* ---------- Values (about) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.value {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--border);
}
.value .num {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 10px;
}
.value h3 { margin-bottom: 8px; }
.value p { color: var(--gray); margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split .panel {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--gray-light);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 320px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}
.footer-col a, .footer-col span { display: block; margin-bottom: 8px; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav .btn { text-align: center; }

  .hero-grid,
  .contact-grid,
  .split { grid-template-columns: 1fr; }
  .hero-art { order: -1; }

  .checklist,
  .cards,
  .values { grid-template-columns: 1fr; }

  .section { padding: 60px 0; }
  .hero { padding: 60px 0; }
}
