/* AnticaHub public site. Plain CSS, no build step. Brand colours match src/Portal/src/theme/ThemeProvider.tsx. */
:root {
  --brand: #1550e0;        /* logo blue: 6.1:1 on white */
  --brand-dark: #0f3db0;
  --accent: #0e9f88;       /* teal darkened for text on white (AA for large text, used only for decoration) */
  --accent-bright: #12c9ae;
  --ink: #141a2e;
  --muted: #4a5068;        /* 8:1 on white */
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --border: #e6ebf5;
  --radius: 12px;
  --max: 1120px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  z-index: 10;
}
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 36px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-nav ul { list-style: none; display: flex; gap: 20px; margin: 0 8px 0 0; padding: 0; flex-wrap: wrap; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav ul a:hover { color: var(--brand); text-decoration: underline; }
.lang { font-size: 0.9rem; color: var(--muted); margin-right: 4px; }
.lang a { color: var(--muted); font-weight: 600; }
.lang [aria-current="true"] { color: var(--ink); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--brand);
  line-height: 1.3;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--brand); }
.btn-secondary:hover { background: var(--bg-soft); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #e9f0ff 60%, #e3faf6 100%);
  padding: 80px 0 72px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 16px; max-width: 18ch; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

/* Sections */
section { padding: 72px 0; scroll-margin-top: 72px; }
section.alt { background: var(--bg-soft); }
section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; }
section .intro { color: var(--muted); max-width: 70ch; margin: 0 0 36px; }

.chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.chips li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-bright);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 600;
}
.chips li small { display: block; font-weight: 400; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.steps li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

.company { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; align-items: start; }
.company dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.company dt { font-weight: 600; }
.company dd { margin: 0; color: var(--muted); }

.cta { text-align: center; }
/* The address in plain sight: a mailto: link does nothing on a machine with no mail client, so the reader can still copy it. */
.contact-line { margin: 16px 0 0; color: var(--muted); }
.contact-line a { font-weight: 600; user-select: all; }
.cta .intro { margin-left: auto; margin-right: auto; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 8px; }
.legal .meta { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.legal p, .legal li { color: #2a3048; }
.legal .note {
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  padding: 12px 16px;
  border-radius: 6px;
}

/* Footer */
.site-footer { background: var(--ink); color: #d6dbeb; padding: 48px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--accent-bright); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer address { font-style: normal; }
.site-footer .legal-line { border-top: 1px solid #2a3050; margin-top: 32px; padding-top: 20px; color: #b4bbd2; }

@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  section { padding: 56px 0; }
  .site-nav ul { display: none; } /* section links are a convenience; every section is reachable by scrolling */
}

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