/* ============================================================
   Micro Trends — Landing page stylesheet
   Brand palette: navy primary, cyan accent, dark ink, off-white.
============================================================ */
:root {
  --c-primary: #0B3D91;
  --c-primary-dark: #082D6E;
  --c-accent: #06B6D4;
  --c-accent-dark: #0891B2;
  --c-ink: #0F172A;
  --c-muted: #475569;
  --c-soft: #F1F5F9;
  --c-bg: #FFFFFF;
  --c-border: #E2E8F0;
  --c-success: #047857;
  --c-danger: #B91C1C;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 2px 8px rgba(15,23,42,.06);
  --shadow-md: 0 6px 16px rgba(15,23,42,.08), 0 12px 32px rgba(15,23,42,.08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.container { width: min(var(--max), 92%); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; font-weight: 600; font-size: 15px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease; text-decoration: none;
  line-height: 1.1;
}
.btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--c-primary-dark); border-color: var(--c-primary-dark); text-decoration: none; }
.btn-accent { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-accent:hover, .btn-accent:focus { background: var(--c-accent-dark); border-color: var(--c-accent-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover, .btn-outline:focus { background: var(--c-primary); color: #fff; text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--c-primary);
  color: #fff; font-size: 14px;
}
.topbar-inner {
  display: flex; gap: 22px; justify-content: flex-end;
  padding: 10px 0; flex-wrap: wrap;
}
.topbar-link {
  color: #fff; display: inline-flex; align-items: center; gap: 6px;
}
.topbar-link .ic { opacity: .9; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 20px;
}
.brand img { max-height: 48px; width: auto; }
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px; align-items: center;
}
.primary-nav a {
  color: var(--c-ink); font-weight: 500; font-size: 15px;
}
.primary-nav a:hover { color: var(--c-primary); text-decoration: none; }
.primary-nav .btn-outline { padding: 8px 16px; font-size: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: transparent; border: 2px solid var(--c-border);
  border-radius: 10px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--c-ink);
  transition: transform .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(6,182,212,.18), transparent 60%),
    linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  padding: 72px 0 56px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(11,61,145,.08); color: var(--c-primary);
  font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1; margin: 0 0 18px;
  letter-spacing: -.02em;
}
.hero h1 .accent { color: var(--c-primary); }
.hero p.lead {
  font-size: 18px; color: var(--c-muted); margin: 0 0 28px; max-width: 56ch;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-md);
}
.trust-card h3 {
  margin: 0 0 16px; font-size: 18px; color: var(--c-ink);
}
.trust-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trust-card li {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px dashed var(--c-border); padding-bottom: 10px;
}
.trust-card li:last-child { border: none; padding-bottom: 0; }
.trust-card .k { color: var(--c-muted); font-size: 14px; }
.trust-card .v { font-weight: 700; color: var(--c-primary); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--c-soft);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 22px 0;
}
.trust-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  text-align: center;
}
.trust-list li {
  font-size: 13px; font-weight: 600; color: var(--c-muted);
  letter-spacing: .3px; text-transform: uppercase;
}

/* ---------- Stats band ---------- */
.stats {
  padding: 56px 0;
  background: linear-gradient(180deg, #FFFFFF, #F8FAFC);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat .num {
  font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; color: var(--c-primary);
  line-height: 1; margin-bottom: 8px; letter-spacing: -.02em;
}
.stat .label { color: var(--c-muted); font-size: 14px; font-weight: 500; }

/* ---------- Section base ---------- */
section { padding: 72px 0; }
section h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 12px; letter-spacing: -.01em;
}
section .section-lead {
  color: var(--c-muted); max-width: 68ch; margin: 0 0 40px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.about-grid h2 { margin-top: 0; }
.about-card {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: var(--radius); padding: 36px; color: #fff;
  box-shadow: var(--shadow-md);
}
.about-card .year {
  font-size: 72px; font-weight: 800; line-height: 1;
  letter-spacing: -.03em; margin-bottom: 8px;
}
.about-card .year-label { opacity: .9; font-weight: 500; }

/* ---------- Products ---------- */
.products { background: var(--c-soft); }
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(11,61,145,.08); color: var(--c-primary);
  font-weight: 800; font-size: 20px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0; color: var(--c-muted); font-size: 15px; }

/* ---------- Why Us ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.value {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--c-border); background: #fff;
  box-shadow: var(--shadow-sm);
}
.value .num {
  flex: 0 0 44px; height: 44px;
  border-radius: 12px; background: var(--c-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.value h3 { margin: 0 0 6px; font-size: 17px; }
.value p { margin: 0; color: var(--c-muted); font-size: 15px; }

/* ---------- Quote form ---------- */
.quote {
  background: linear-gradient(180deg, #F8FAFC, #FFFFFF);
}
.quote-wrap {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start;
}
.quote-wrap .intro h2 { margin-top: 0; }
.form-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--c-ink);
}
.field .req { color: var(--c-danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--c-ink);
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(11,61,145,.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-legal { font-size: 13px; color: var(--c-muted); margin: 10px 0 16px; }
.form-msg {
  padding: 12px 14px; border-radius: var(--radius-sm);
  margin-top: 14px; display: none; font-size: 14px;
}
.form-msg.success { display: block; background: #ECFDF5; color: var(--c-success); border: 1px solid #A7F3D0; }
.form-msg.error { display: block; background: #FEF2F2; color: var(--c-danger); border: 1px solid #FECACA; }

/* ---------- Contact ---------- */
.contact {
  background: var(--c-ink); color: #fff;
}
.contact h2 { color: #fff; }
.contact .section-lead { color: #94A3B8; }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.contact-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 26px;
}
.contact-card h3 { margin: 0 0 8px; font-size: 16px; color: #fff; }
.contact-card p, .contact-card a { color: #CBD5E1; margin: 0; font-size: 15px; }
.contact-card a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0B1220; color: #CBD5E1;
  padding: 56px 0 20px; margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img {
  margin-bottom: 14px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 180px;
  height: auto;
}
.footer-brand p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; }
.footer-brand a { color: #CBD5E1; }
.footer-brand a:hover { color: #fff; }
.social {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; gap: 10px;
}
.social a {
  width: 38px; height: 38px; display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(255,255,255,.08);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px;
  transition: background .2s ease;
}
.social a:hover { background: var(--c-accent); text-decoration: none; }
.footer-col h3 {
  color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .6px;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #CBD5E1; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 18px; font-size: 13px; color: #94A3B8; text-align: center;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  background: #0B1220; color: #E2E8F0; border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.1);
}
.cookie-inner {
  display: flex; gap: 22px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 14px; max-width: 68ch; }
.cookie-banner a { color: var(--c-accent); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn-outline { color: #fff; border-color: #fff; }
.cookie-banner .btn-outline:hover { background: #fff; color: var(--c-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .quote-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .primary-nav.open { max-height: 520px; }
  .primary-nav ul {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 0;
  }
  .primary-nav li { border-bottom: 1px solid var(--c-soft); }
  .primary-nav li:last-child { border-bottom: none; }
  .primary-nav a { display: block; padding: 14px 20px; }
  .primary-nav .btn-outline {
    border: none; padding: 14px 20px; border-radius: 0; color: var(--c-primary);
  }
  .primary-nav .btn-outline:hover { background: var(--c-soft); color: var(--c-primary); }
}
@media (max-width: 520px) {
  .topbar-inner { justify-content: center; font-size: 13px; gap: 14px; }
  section { padding: 52px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .trust-list { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}

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