/* Nuova Black: light version
   Built from light-version/design. The dark version is kept in /dark-version-backup. */

:root {
  --bg: #F6F3EC;          /* warm cream page */
  --card: #FBF9F4;        /* boxes / cards */
  --panel: #EDE7DA;       /* soft "Let's talk." panels */
  --white: #FFFFFF;
  --line: #E2DCCF;        /* card borders, dividers */
  --line-2: #CFC7B8;      /* secondary button + field borders */
  --ink: #1C1B19;         /* headings, buttons, logo */
  --body: #55524C;        /* body text */
  --muted: #6E6A62;       /* muted labels */
  --violet: #5A49E0;      /* accent */
  --error: #B42318;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: Outfit, Inter, system-ui, sans-serif;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--violet); }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; text-decoration: none; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1.05; letter-spacing: -0.02em; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -0.02em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.015em; }
.h2-sm { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -0.01em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.h3-lg { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.6; color: var(--body); }
.lead-18 { font-size: 18px; line-height: 1.6; color: var(--body); }
.body { font-size: 16px; line-height: 1.6; color: var(--body); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  padding: 14px 24px; min-height: 48px; border-radius: 10px;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--ink); color: var(--bg); border: 0; }
.btn-primary:hover { background: var(--violet); color: var(--bg); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-2); padding: 13px 23px; }
.btn-secondary:hover { border-color: var(--violet); color: var(--violet); }
.text-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--body); font-size: 15px; min-height: 44px; transition: color .2s; }
.text-link:hover { color: var(--violet); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 3; border-bottom: 1px solid var(--line); }
.site-header-inner { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-family: var(--brand); font-weight: 600; font-size: 23px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.login-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--body); font-size: 15px; padding: 10px 14px; min-height: 44px; transition: color .2s; }
.login-link:hover, .login-link[aria-current="page"] { color: var(--violet); }
.menu-wrap { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 16px; min-height: 44px; cursor: pointer; transition: border-color .2s, color .2s; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--violet); color: var(--violet); }
.menu {
  position: absolute; right: 0; top: 54px; width: 260px; max-width: calc(100vw - 32px);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 12px 32px rgba(28, 27, 25, 0.10); display: flex; flex-direction: column;
}
.menu a { text-decoration: none; color: var(--body); font-size: 15px; display: flex; align-items: center; min-height: 40px; border-radius: 8px; padding: 10px 12px; transition: color .2s, background-color .2s; }
.menu a:hover { color: var(--violet); background: var(--bg); }
.menu a.menu-sub { padding-left: 24px; }
.menu a[aria-current="page"] { color: var(--violet); }
.menu-group { padding: 14px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.menu-divider { height: 1px; background: var(--line); margin: 8px 4px; }

/* ---------- Capybara ---------- */
.capy { flex: 0 0 auto; }

/* ---------- Sections ---------- */
.section { padding-bottom: 112px; display: flex; flex-direction: column; gap: 40px; }
.section-tight { padding-bottom: 104px; gap: 32px; }
.section-head { display: flex; flex-direction: column; gap: 14px; }

/* Home hero */
.hero { padding-top: 120px; padding-bottom: 112px; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.hero .display { margin-top: 8px; max-width: 960px; }
.hero .lead { max-width: 640px; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* Cards */
.card-row { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 300px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
a.card:hover { border-color: var(--violet); background: var(--white); color: var(--ink); }
.card .body { flex: 1 1 auto; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 6px; transition: color .2s; }
a.card:hover .more { color: var(--violet); }

/* Included boxes (service pages) */
.box-grid { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; }
.box { flex: 1 1 340px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; }

/* Ruled columns (steps, outcomes, values) */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; list-style: none; padding: 0; }
.cols-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.col { min-width: 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 24px; }
.step-num { font-size: 14px; font-weight: 600; color: var(--violet); }

/* Page intro */
.intro { padding-top: 56px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.intro .lead { max-width: 760px; }
.intro-roomy { padding-top: 88px; padding-bottom: 96px; }
.intro-roomy .h1 { max-width: 900px; }
.intro-roomy .lead { max-width: 720px; }
.back-link { align-self: flex-start; }

/* Closing panel */
.panel-wrap { padding-bottom: 112px; }
.panel { background: var(--panel); border-radius: 24px; padding: 80px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.panel .lead-18 { max-width: 480px; }
.panel .btn { margin-top: 8px; }
.next-wrap { margin-top: -72px; padding-bottom: 72px; display: flex; justify-content: center; }

/* About */
.about-intro { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; }
.about-head { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: var(--body); padding-top: 44px; }

/* ---------- Contact ---------- */
.contact { padding-top: 88px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 64px; }
.contact-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-side .lead { font-size: 19px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.contact-item { display: flex; flex-direction: column; gap: 6px; }
.contact-value { font-family: var(--serif); font-size: 24px; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; transition: color .2s; }
.contact-value:hover { color: var(--violet); }
.contact-main { flex: 999 1 480px; min-width: 0; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.form-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-card legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 500; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--white); border: 1px solid var(--line-2); color: var(--ink); font: inherit; font-size: 14px; padding: 9px 16px; min-height: 44px; border-radius: 999px; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--violet); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); min-width: 0; }
.form-row .field { flex: 1 1 200px; }
.field input, .field textarea {
  width: 100%; background: var(--white); border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 400; padding: 13px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(90, 73, 224, 0.15); outline: none; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 13px; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }
.form-status { font-size: 15px; color: var(--body); }
.form-status:empty { display: none; }
.form-card .btn-primary { align-self: flex-start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 64px 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.thanks h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; }
.thanks h2:focus { outline: none; }
.thanks p { font-size: 17px; color: var(--body); }

/* ---------- Login ---------- */
.login { padding-top: 96px; padding-bottom: 128px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.login .h1 { margin-top: 8px; font-size: clamp(40px, 4.6vw, 60px); }
.login .lead-18 { max-width: 460px; }
.login-form { width: 100%; max-width: 420px; margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; text-align: left; }
.login-form .btn-primary { margin-top: 4px; }
.link-btn { align-self: center; font: inherit; font-size: 14px; color: var(--body); background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; transition: color .2s; }
.link-btn:hover { color: var(--violet); }
.portal-msg { font-size: 15px; line-height: 1.6; color: var(--ink); text-align: center; border-top: 1px solid var(--line); padding-top: 18px; }
.portal-msg:empty { display: none; }
.portal-msg a { color: var(--violet); }
.login-note { font-size: 15px; color: var(--body); }

/* ---------- Privacy / simple pages ---------- */
.legal-body { max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.75; color: var(--body); }
.legal-body h2 { margin-top: 24px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--ink); }
.legal-body ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-body a { color: var(--ink); }
.legal-body a:hover { color: var(--violet); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo .wordmark { font-size: 21px; }
.footer-brand p { font-size: 15px; color: var(--body); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col .menu-group { padding: 0; margin-bottom: 4px; }
.footer-col a { text-decoration: none; color: var(--ink); transition: color .2s; }
.footer-col a:hover { color: var(--violet); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--violet); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .site-header-inner { padding-top: 14px; padding-bottom: 14px; }
  .wordmark { font-size: 20px; }
  .login-link { padding: 10px 8px; }
  .login-link .login-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero { padding-top: 64px; padding-bottom: 72px; gap: 24px; }
  .hero .capy { width: 96px; height: 96px; }
  .lead { font-size: 18px; }
  .section { padding-bottom: 80px; gap: 28px; }
  .section-tight { padding-bottom: 72px; }
  .intro { padding-top: 32px; padding-bottom: 56px; }
  .intro-roomy, .about-intro, .contact { padding-top: 48px; padding-bottom: 72px; }
  .about-copy { padding-top: 0; }
  .card, .box { padding: 24px; }
  .panel-wrap { padding-bottom: 80px; }
  .panel { padding: 56px 24px; border-radius: 20px; }
  .next-wrap { margin-top: -48px; padding-bottom: 48px; }
  .form-card { padding: 24px 20px; }
  .thanks { padding: 48px 24px; }
  .login { padding-top: 56px; padding-bottom: 80px; }
  .login-form { padding: 24px 20px; }
  .footer-cols { gap: 32px 40px; }
}
