:root {
  --bg: #fbfaf7;
  --bg-alt: #f1eee7;
  --text: #1d1d1f;
  --muted: #5b5b60;
  --accent: #1f4e79;
  --accent-hover: #163a5a;
  --line: #e2ddd2;
  --radius: 10px;
  --max: 1040px;
  font-size: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517;
    --bg-alt: #1c1e21;
    --text: #ececec;
    --muted: #a8a8ad;
    --accent: #7fb3e6;
    --accent-hover: #a5cbf0;
    --line: #2e3136;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 680px; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg); padding: .5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.logo {
  font-weight: 700; font-size: 1.1rem; letter-spacing: .05em;
  text-decoration: none; color: var(--text);
  border: 2px solid var(--text); border-radius: 6px; padding: .1rem .45rem;
}
nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 7rem 0 6rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .15em; font-size: .8rem;
  color: var(--accent); font-weight: 600; margin: 0 0 .75rem;
}
h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.05;
  margin: 0 0 1.25rem; letter-spacing: -.02em;
}
.lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--muted); max-width: 36ch; margin: 0 0 2rem; }

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 1.5rem; letter-spacing: -.01em; }
h3 { margin: 0 0 .5rem; font-size: 1.15rem; }

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
}
.card p { margin: 0; color: var(--muted); }

/* Buttons */
.button {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--accent); color: var(--bg);
  padding: .8rem 1.4rem; border-radius: var(--radius);
  border: 2px solid var(--accent);
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }
.button.ghost { background: transparent; color: var(--accent); }
.contact-links { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }

@media (max-width: 560px) {
  nav ul { gap: 1rem; }
  .hero { padding: 4.5rem 0 4rem; }
  .section { padding: 3.5rem 0; }
}

/* Under construction-pagina */
body.construction { min-height: 100vh; display: flex; flex-direction: column; }
body.construction main { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 4rem; padding-bottom: 4rem; }
body.construction .logo { align-self: flex-start; margin-bottom: 2.5rem; }
body.construction .lead { max-width: 42ch; margin-bottom: 1rem; }
body.construction .lead + .lead { font-size: 1rem; }
