/* iqdigital.at — stil de baza, MOBILE FIRST: regulile de baza sunt pentru telefon,
   ecranele mari primesc ajustari in @media (min-width: ...). */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --text: #15171c;
  --muted: #5d6270;
  --accent: #2448d8;
  --line: #e2e5ea;
  --gutter: 20px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-alt: #171a20;
    --text: #eef0f4;
    --muted: #a1a7b3;
    --accent: #7b97ff;
    --line: #2a2e37;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--accent); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: 720px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top__inner {
  display: flex;
  align-items: center;
  min-height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero { padding: 72px 0 64px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 8vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 19px;
}

/* Sectiuni */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.2;
}
h3 { margin: 0 0 8px; font-size: 19px; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.card p { margin: 0; color: var(--muted); }

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.contact a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

.muted { color: var(--muted); }

.facts { margin: 24px 0 0; }
.facts dt { font-weight: 600; margin-top: 16px; }
.facts dd { margin: 0; color: var(--muted); }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.foot a {
  color: var(--muted);
  min-height: 44px;
  line-height: 44px;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .hero { padding: 120px 0 104px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
