/* ansa capital management – minimal production CSS */
:root {
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --bg: #f7f5ef;
  --surface: #efece4;
  --brand: #1f3b35;
  --brand-hover: #16302b;
  --accent: #b08d4a;
  --white: #fff;
  --border: #d9d4c8;
  --radius: 6px;
  --max: 1120px;
  --narrow: 720px;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--brand);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; }
address { font-style: normal; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap.narrow, .narrow { max-width: var(--narrow); }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--brand);
}
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; color: var(--brand); }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}
.brand-name small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
  color: var(--brand);
}
.site-nav ul {
  display: flex;
  gap: 0.25rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 0.35rem 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(165deg, var(--white) 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-aside {
  background: var(--brand);
  color: var(--bg);
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
}
.hero-aside dl { margin: 0; }
.hero-aside dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(247, 245, 239, 0.65);
  margin-top: 0.85rem;
}
.hero-aside dt:first-child { margin-top: 0; }
.hero-aside dd { margin: 0.15rem 0 0; font-weight: 500; }
.hero-aside a { color: var(--accent); }

/* Sections */
.section { padding: 3rem 0; }
.section.surface { background: var(--surface); }
.section-head { margin-bottom: 1.75rem; max-width: 40em; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.page-head { padding: 2.25rem 0 1.5rem; }
.page-head .lead { color: var(--muted); max-width: 40em; }
.crumbs {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 0.4em; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; }

/* Services */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.service-list > li > a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.service-list > li > a:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(31, 59, 53, 0.08);
}
.service-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--brand);
}
.service-basis {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}
.service-desc { margin: 0.5rem 0 0.65rem; color: var(--muted); font-size: 0.98rem; }
.service-more {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

/* Principles / cols */
.principles, .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.principles h3, .cols h3 { margin-bottom: 0.4em; }
.principles p, .cols p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}
.steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}
.steps h3 { margin: 0 0 0.25em; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Lists */
.line-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.line-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.line-list li:last-child { border-bottom: 0; }
.related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* Facts / DL */
.facts {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}
.facts dt {
  color: var(--muted);
  font-size: 0.9rem;
}
.facts dd { margin: 0; }

/* Table register */
.register-wrap { overflow-x: auto; margin: 1rem 0; }
.register {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
}
.register caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
}
.register th, .register td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.register th {
  background: var(--brand);
  color: var(--bg);
  font-weight: 500;
  font-size: 0.85rem;
}
.register .basis {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.register .date { white-space: nowrap; }
.register tr.past { opacity: 0.72; }

/* Note / CTA */
.note {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.note p { margin: 0; }
.cta {
  background: var(--brand);
  color: var(--bg);
  padding: 3rem 0;
  text-align: center;
}
.cta h2 { color: var(--bg); }
.cta .lead { color: rgba(247, 245, 239, 0.85); max-width: 32em; margin-inline: auto; }
.cta .btn { background: var(--accent); color: var(--brand); }
.cta .btn:hover { background: #c4a05a; color: var(--brand); }

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--bg);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn:hover { background: var(--brand-hover); color: var(--bg); }
.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--brand);
  background: var(--surface);
  color: var(--brand);
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}
.form .field { margin-bottom: 1.1rem; }
.form label { display: block; font-weight: 500; margin-bottom: 0.3rem; font-size: 0.95rem; }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
}
.form textarea { min-height: 8rem; resize: vertical; }
.form .hint { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.35rem; }
.form .error { color: #a33; font-size: 0.85rem; margin: 0.25rem 0 0; min-height: 1.2em; }
.form .check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.form .check input { margin-top: 0.3rem; flex-shrink: 0; }
.form .check label { font-weight: 400; font-size: 0.9rem; }
.form .hp { position: absolute; left: -9999px; }
.form-status { margin-top: 0.75rem; font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--brand);
  color: rgba(247, 245, 239, 0.85);
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}
.site-footer h2 {
  color: var(--bg);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.site-footer a { color: rgba(247, 245, 239, 0.9); }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li { margin-bottom: 0.35rem; }
.site-footer button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.footer-note {
  border-top: 1px solid rgba(247, 245, 239, 0.15);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(247, 245, 239, 0.65);
}
.footer-note p { margin: 0 0 0.4em; }

/* Cookie banner */
.cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  padding: 1.25rem 0;
  z-index: 60;
  display: none;
}
.cookie.is-visible { display: block; }
.cookie h2 { font-size: 1.1rem; margin-bottom: 0.4em; }
.cookie p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.cookie-options {
  display: none;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.cookie-options.is-open { display: block; }
.cookie-options label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Error page */
.error-page { padding: 4rem 0; text-align: center; }
.error-page .line-list { display: inline-block; text-align: left; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .principles,
  .cols,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid { gap: 1.5rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.6rem 0; }
  .site-header .wrap { position: relative; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { margin-top: 0.5rem; }
}
