/* Sirvanos Go — sirvanosgo.com. One stylesheet, no web fonts, no scripts. */

:root {
  color-scheme: light dark;
  --brand: #D9603F;          /* Sirvanos orange */
  --brand-ink: #FFFFFF;      /* text on the brand color (large text only: 3.7:1) */
  --accent: #A9452A;         /* links and small orange text on light backgrounds (5.7:1) */
  --bg: #FFFFFF;
  --surface: #FBF5F2;
  --surface-2: #F4E9E4;
  --text: #1F1A17;
  --muted: #5B524D;
  --line: #E7DCD6;
  --focus: #1F5FBF;
  --radius: 14px;
  --max: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #C9573A;
    --accent: #F29A7E;
    --bg: #141110;
    --surface: #1E1A18;
    --surface-2: #2A2421;
    --text: #F3EEEB;
    --muted: #B9AEA8;
    --line: #3A322E;
    --focus: #8AB4FF;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  min-height: 44px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; display: block; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .lang {
  border: 1px solid var(--line);
  margin-left: 4px;
}

/* ---------- hero (home) ---------- */

.hero {
  background: var(--brand);
  color: var(--brand-ink);
}
.hero .wrap {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 52px;
}
@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr auto; padding-top: 72px; padding-bottom: 76px; }
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 18ch;
}
/* White on the brand color is only used at large/bold sizes (WCAG large text). */
.hero .lead {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 36ch;
}
.hero-logo {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  order: -1;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.28);
  justify-self: start;
}
@media (min-width: 820px) { .hero-logo { width: 220px; height: 220px; border-radius: 50px; justify-self: end; order: 0; } }

.soon {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #8E3A22;
  font-weight: 800;
  font-size: 1.05rem;
}

/* ---------- sections ---------- */

main { display: block; flex: 1 0 auto; }

.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--surface); }

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section .kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.section .intro { margin: 0 0 24px; color: var(--muted); max-width: 60ch; font-size: 1.125rem; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .grid.two, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.tint .card { background: var(--bg); }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--muted); }
.card li + li { margin-top: 4px; }

.role-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}

.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: inset 0 0 0 5px var(--bg);
  border: 2px solid var(--brand);
}

.contact-line { font-size: 1.125rem; margin: 0; }

/* ---------- document pages ---------- */

.doc { padding: 40px 0 56px; }
.doc .wrap { max-width: 780px; }
.doc h1 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 4.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.doc .meta { margin: 0 0 24px; color: var(--muted); }
.doc h2 {
  margin: 40px 0 10px;
  font-size: 1.45rem;
  line-height: 1.25;
  scroll-margin-top: 16px;
}
.doc h3 { margin: 26px 0 6px; font-size: 1.15rem; line-height: 1.3; }
.doc p, .doc li { max-width: 70ch; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 28px;
}
.summary h2 { margin-top: 0; font-size: 1.15rem; }
.summary ul { margin: 0; }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 0 0 8px;
}
.toc h2 { margin: 0 0 6px; font-size: 1rem; }
.toc ol { margin: 0; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { break-inside: avoid; }

.table-wrap { overflow-x: auto; margin: 12px 0 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 700; }
caption { text-align: left; color: var(--muted); padding-bottom: 6px; }

/* stacked table on narrow screens */
@media (max-width: 639px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.stack tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; padding: 4px 0; }
  table.stack td { border: 0; padding: 6px 14px; }
  table.stack td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--muted); font-size: 0.85rem; }
}

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; min-height: 32px; }
.steps > li + li { margin-top: 12px; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.2rem;
  text-align: center;
  line-height: 32px;
}

.ui { font-weight: 700; }

.note {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  margin: 10px 0;
  background: var(--bg);
}
details[open] { padding-bottom: 12px; }
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0 12px 26px;
  min-height: 44px;
  position: relative;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.05em;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
details[open] > summary::before { transform: rotate(45deg); top: 0.95em; }
details > p { padding-left: 26px; }
details p { margin: 6px 0; }

.email-box {
  display: inline-block;
  font-weight: 800;
  font-size: 1.15rem;
}

/* ---------- 404 ---------- */

.notfound { padding: 72px 0 88px; text-align: center; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 8px; }
.notfound p { color: var(--muted); }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.notfound a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 28px 0 36px;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.site-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  margin-left: -8px;
  margin-right: 8px;
  color: var(--text);
  font-weight: 600;
}
.site-footer p { margin: 4px 0; }

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

@media print {
  .site-header nav, .skip, .site-footer ul { display: none; }
  .hero { background: none; color: #000; }
  a { color: inherit; }
}
