/* Micrapix — clean & minimal theme
   ---------------------------------- */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-ink: #0f1722;
  --text: #1c2733;
  --text-muted: #5a6675;
  --border: #e6e9ee;
  --accent: #1488d4;
  --accent-dark: #0f6cab;
  --accent-soft: #e6f1fb;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, 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.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; color: var(--bg-ink); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; margin: 0 0 .6em; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent);
  color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--bg-ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bg-ink); font-weight: 700; }
.brand:hover { color: var(--bg-ink); }
.brand-logo { width: 34px; height: 34px; display: block; }
.brand-name { font-size: 1.15rem; letter-spacing: -0.02em; }
/* Company name in the header uses the Orbitron display face */
.site-header .brand-name {
  font-family: 'Orbitron', var(--font);
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
/* Logo icon is already white — sits on the dark footer as-is */
.footer-logo { width: 28px; height: 28px; display: block; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--text-muted); font-weight: 500; font-size: .98rem; }
.site-nav a:hover { color: var(--bg-ink); }
.site-nav a[aria-current="page"] { color: var(--bg-ink); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: var(--radius-sm); }
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle, .nav-toggle-label { display: none; }

/* Sections */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 56px 0; }
.section-head { max-width: 860px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
/* Keep body copy at a comfortable reading width even when the heading is wide */
.section-head .lead { max-width: 660px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero p.lead { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Grid + cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16, 24, 40, .1); }
.card .card-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px;
}
.card p { color: var(--text-muted); margin-bottom: 0; }
.card .bullets { margin: 14px 0 0; padding: 0; list-style: none; }
.card .bullets li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--text); }
.card .bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}

/* Stat / value row */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value h3 { color: var(--accent); font-size: 1.05rem; }
.value p { color: var(--text-muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--bg-ink); color: #fff; border-radius: var(--radius); padding: 56px 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4ccd6; max-width: 560px; margin: 0 auto 24px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--text-muted); }
.contact-info a { font-weight: 600; }

.form-control {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.form-field .errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: #b42318; font-size: .88rem; }
textarea.form-control { resize: vertical; }

/* Flash messages */
.messages { list-style: none; margin: 20px 0 0; padding: 0; }
.message { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 10px; font-weight: 500; }
.message-success { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }
.message-error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

/* Footer */
.site-footer { background: var(--bg-ink); color: #c4ccd6; padding: 56px 0 40px; margin-top: 0; }
.site-footer .brand-name { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-tag { color: #9aa5b1; margin: 6px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: #c4ccd6; }
.footer-nav a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: #8a96a3; }

/* Responsive
   ---------- */

/* Tablet / collapsed nav */
@media (max-width: 860px) {
  .grid-3, .grid-2, .values { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 56px; }
  .site-header .brand-name { font-size: 1.5rem; }

  .nav-toggle-label {
    display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
    margin: -8px -8px -8px 0; /* keep a 40px tap target without widening the bar */
  }
  .nav-toggle-label span { width: 24px; height: 2px; background: var(--bg-ink); border-radius: 2px; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    box-shadow: var(--shadow);
  }
  .site-nav a { width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .nav-cta { border-radius: 0; }
  .nav-toggle:checked ~ .site-nav { max-height: 360px; }
}

/* Phones */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .section-tight { padding: 40px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 56px 0 44px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .card { padding: 22px; }
  .cta-band { padding: 32px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-nav { gap: 14px 22px; }

  .site-header .brand-name { font-size: 1.3rem; letter-spacing: .02em; }
  .brand-logo { width: 30px; height: 30px; }
  .brand { gap: 9px; }
}

/* Small phones — keep the brand lockup on one line */
@media (max-width: 380px) {
  .header-inner { height: 60px; }
  .site-nav, .nav-toggle:checked ~ .site-nav { top: 60px; inset-block-start: 60px; }
  .site-header .brand-name { font-size: 1.12rem; }
  .brand-logo { width: 28px; height: 28px; }
  h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
