/* M2MD Technologies — site styles */
:root {
  --navy: #0E2238;
  --navy-2: #1F3651;
  --navy-3: #0A1829;
  --orange: #F26B1D;
  --orange-text: #B4480C;
  --orange-light: #FFA36B;
  --grey: #F2F4F6;
  --line: #E3E7EC;
  --muted: #4A5868;
  --muted-on-dark: #C9D3DE;
  --radius: 12px;
  --head: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--navy); background: #fff; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--orange-text); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; }
h1 { font-weight: 800; font-size: clamp(36px, 5vw, 60px); }
h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-weight: 700; font-size: 22px; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.grey { background: var(--grey); }
.dark { background: var(--navy); color: #fff; }
.dark a:not(.btn) { color: #fff; }
.dark .lead, .dark .muted { color: var(--muted-on-dark); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--orange-text); margin-bottom: 12px; }
.dark .eyebrow { color: var(--orange-light); }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.head-block { max-width: 760px; margin-bottom: 48px; }
.head-block .lead { margin-top: 16px; }

/* Buttons */
.btn { display: inline-block; padding: 15px 28px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #D85A10; color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-logo { width: 44px; height: 44px; border-radius: 8px; background: var(--line); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: var(--muted); }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 22px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--orange-text); font-weight: 600; }
.site-nav .btn { padding: 11px 18px; }

/* Hero */
.hero { padding: 96px 0; }
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center; }
.hero .lead { color: var(--muted-on-dark); margin: 24px 0 32px; }
.page-hero { padding: 72px 0; }
.page-hero .lead { margin-top: 16px; color: var(--muted-on-dark); max-width: 760px; }

/* Photo slots: replace with <img> once photos arrive */
.photo { background: var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: 14px; aspect-ratio: 4 / 3; }
.photo.square { aspect-ratio: 1 / 1; }
.dark .photo { background: var(--navy-2); border: 1.5px dashed #4E6A8A; color: var(--muted-on-dark); }
.photo-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding: 40px 0; }
.stats strong { display: block; font-family: var(--head); font-size: 20px; }
.stats span { font-size: 15px; color: var(--muted); }

/* Grids and cards */
.grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.small { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.card .photo, .card .photo-img { border-radius: 0; }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card-body .more { margin-top: auto; font-weight: 600; }
.card-tag { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-text); }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.topline { border-top: 3px solid var(--navy); padding-top: 20px; }
.topline h3 { font-size: 20px; margin-bottom: 6px; }
.topline p { color: var(--muted); font-size: 15px; }
.sensor h3 { font-size: 19px; margin: 12px 0 4px; }
.sensor p { color: var(--muted); font-size: 15px; }

/* Flow */
.flow { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.flow-step { flex: 1 1 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.flow-step.key { background: var(--navy); color: #fff; border-color: var(--navy); }
.flow-step .num { font-family: var(--head); font-weight: 800; font-size: 32px; color: var(--orange-text); }
.flow-step.key .num { color: var(--orange-light); }
.flow-step h3 { font-size: 20px; margin: 4px 0 8px; }
.flow-step p { font-size: 15px; color: var(--muted); }
.flow-step.key p { color: var(--muted-on-dark); }
.flow-arrow { display: flex; align-items: center; color: #8696A7; font-size: 28px; }

/* Split */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tiles li { background: var(--navy-2); border-radius: var(--radius); padding: 24px; }
.tiles strong { display: block; font-family: var(--head); font-size: 18px; margin-bottom: 4px; }
.tiles span { color: var(--muted-on-dark); font-size: 15px; }

/* Table */
.table-box { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; text-align: left; }
thead tr { background: var(--navy); color: #fff; }
th, td { padding: 16px 20px; }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody th { font-weight: 600; }

/* CTA band */
.cta { background: var(--orange); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.cta h2 { max-width: 680px; }
.cta p { font-size: 18px; margin-top: 8px; }

/* Contact */
.form { display: grid; gap: 18px; }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid #B7C1CC; border-radius: 6px; background: #fff; color: var(--navy); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid #FFC9A8; border-color: var(--orange); }
.form textarea { min-height: 150px; resize: vertical; }
.form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.contact-card { background: var(--grey); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-card a { font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-3); color: var(--muted-on-dark); font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 56px 0; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; }
.site-footer .col-title { font-weight: 600; color: #fff; }
.site-footer a { color: var(--muted-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand { font-family: var(--head); font-weight: 800; font-size: 20px; color: #fff; }
.site-footer .legal { border-top: 1px solid var(--navy-2); padding: 20px 0; font-size: 13px; }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero, .page-hero { padding: 56px 0; }
  .flow-arrow { display: none; }
  .site-nav { gap: 6px 18px; }
  .site-header { position: static; }
}
