/* Rümawald AI — global styles */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #1a2230;
  --ink-soft: #4a5568;
  --line: #e2e8f0;
  --brand: #1f3a5f;
  --brand-2: #35617f;
  --accent: #4a90a4;
  --accent-soft: #e7f0f3;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(31, 58, 95, 0.08);
  --shadow-soft: 0 4px 14px rgba(31, 58, 95, 0.06);
  --maxw: 1120px;
  --font: -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(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--brand);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--brand);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--brand);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--brand);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

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

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero p.lead {
  font-size: 1.12rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.hero-media .stacked {
  position: absolute;
  bottom: -26px;
  left: -26px;
  width: 45%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 4px solid #fff;
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Grid / cards ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p {
  margin-bottom: 0;
  font-size: 0.97rem;
}

/* ---------- Feature / split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.split.reverse .split-media {
  order: -1;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.list-check li {
  position: relative;
  padding: 6px 0 6px 30px;
  color: var(--ink-soft);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat .num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--brand);
  display: block;
}

.stat .label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 0.2em;
}

.step p {
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.info-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 18px;
}

.info-block h3 {
  font-size: 1.05rem;
}

.info-block p {
  margin: 0;
}

form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: #fff;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* ---------- CTA band ---------- */

.cta {
  background: var(--brand);
  border-radius: var(--radius);
  padding: 48px;
  color: #fff;
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
  margin: 0 auto 22px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--brand);
}

.cta .btn-primary:hover {
  background: var(--accent-soft);
}

/* ---------- Article (legal pages) ---------- */

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.article h2 {
  margin-top: 1.6em;
}

.article h2:first-of-type {
  margin-top: 0;
}

.article ul {
  color: var(--ink-soft);
}

.page-head {
  padding: 56px 0 20px;
  text-align: center;
}

.page-head p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #12233a;
  color: #c7d2e0;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 52px 0 34px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.site-footer a {
  color: #c7d2e0;
  font-size: 0.94rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-brand p {
  color: #9fb0c4;
  max-width: 34ch;
  font-size: 0.94rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #8ea0b6;
}

.footer-bottom a {
  color: #8ea0b6;
}

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

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .hero-media .stacked {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--brand);
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle:focus + .nav-links,
  .nav-links:target {
    display: flex;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .grid-2,
  .stats {
    grid-template-columns: 1fr;
  }

  .article,
  .cta {
    padding: 28px 22px;
  }

  .hero {
    padding: 48px 0 20px;
  }
}
