/* Altivra Consulting website. Tokens from the Altivra brand guidelines v1.0 (October 2026). */

/* Outfit (latin), self-hosted */
@font-face {
  font-family: 'Outfit';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-600-normal.woff2') format('woff2');
}

:root {
  --ink: #17171c;
  --paper: #f7f3ec;
  --sand: #e6decf;
  --lamplight: #e5572b;
  --lamplight-hover: #ee6a40; /* hover state of the call button only */
  --graphite: #2a2a33;
  --stone: #4a4a52;
  --mist: #d8d3c8;
  --ash: #b8b3aa;

  --radius-card: 20px;
  --radius-button: 16px;
  --gutter: 24px;
  --max: 1120px;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
@media (min-width: 640px) {
  html {
    scroll-padding-top: 88px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-ink :focus-visible {
  outline-color: var(--paper);
}

/* Type scale: sentence case, left aligned */
.display {
  font-weight: 600;
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.025em;
}
.headline {
  font-weight: 600;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.subhead {
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.01em;
}
.body-large {
  font-size: 18px;
  line-height: 27px;
}
.small {
  font-size: 14px;
  line-height: 20px;
}
.label {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
}
.measure {
  max-width: 65ch;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius-button);
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 64px 0;
}
@media (min-width: 800px) {
  .section {
    padding: 96px 0;
  }
}
.section--tight {
  padding-top: 0;
}

/* Buttons: rounded, no shadows. Lamplight is only ever the call button. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 32px;
  border-radius: var(--radius-button);
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--call {
  background: var(--lamplight);
  color: var(--ink);
}
.btn--call:hover {
  background: var(--lamplight-hover);
}
.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover {
  background: var(--graphite);
}
.btn--outline-paper {
  color: var(--paper);
  border-color: var(--paper);
}
.btn--outline-paper:hover {
  background: var(--paper);
  color: var(--ink);
}
.btn--outline-ink {
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline-ink:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 520px) {
  .btn-row .btn {
    width: 100%;
  }
}

/* Header */
.site-header {
  background: var(--ink);
  color: var(--paper);
}
@media (min-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  padding: 8px 0;
  color: var(--paper);
}
.logo svg {
  display: block;
  width: 128px;
  height: auto;
}
.nav {
  order: 3;
  flex-basis: 100%;
  display: flex;
  gap: 28px;
  border-top: 1px solid var(--graphite);
}
.nav a {
  color: var(--mist);
  text-decoration: none;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--paper);
}
.nav a[aria-current='page'] {
  color: var(--paper);
  border-bottom-color: var(--paper);
}
.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--graphite);
  border-radius: var(--radius-button);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-call:hover {
  border-color: var(--paper);
}
@media (max-width: 520px) {
  .logo svg {
    width: 104px;
  }
  .header-call {
    padding: 0 12px;
    font-size: 15px;
  }
}
@media (min-width: 640px) {
  .nav {
    order: 0;
    flex-basis: auto;
    border-top: 0;
    gap: 32px;
  }
  .nav a {
    padding: 8px 0;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 72px;
}
@media (min-width: 800px) {
  .hero {
    padding: 112px 0 128px;
  }
}
.ghost {
  position: absolute;
  right: 8px;
  bottom: -6%;
  height: 52%;
  width: auto;
  color: var(--graphite);
  pointer-events: none;
}
@media (min-width: 800px) {
  .ghost {
    right: clamp(24px, 8vw, 128px);
    bottom: -9%;
    height: 106%;
  }
}
.hero__content {
  position: relative;
  max-width: 660px;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero__lead {
  color: var(--mist);
  margin-bottom: 40px;
  max-width: 56ch;
}
.hero__note {
  color: var(--ash);
  margin-top: 24px;
  max-width: 56ch;
}
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .rise--2 {
    animation-delay: 0.08s;
  }
  .rise--3 {
    animation-delay: 0.16s;
  }
  .rise--4 {
    animation-delay: 0.24s;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Notice: solicitors only */
.notice {
  background: var(--sand);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  display: grid;
  gap: 32px;
}
@media (min-width: 800px) {
  .notice {
    padding: 56px 64px;
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: start;
  }
}
.notice .headline {
  margin-bottom: 16px;
}
.notice p {
  color: var(--stone);
}
.notice__public {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 24px;
}
.notice__public h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 8px;
}

/* Sections and cards */
.section-intro {
  margin-bottom: 48px;
  max-width: 640px;
}
.section-intro .headline {
  margin-bottom: 16px;
}
.section-intro p {
  color: var(--stone);
}
.grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.card {
  background: var(--sand);
  border-radius: var(--radius-card);
  padding: 32px;
}
.card h3 {
  margin-bottom: 12px;
}
.card p {
  color: var(--stone);
}
.panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-card);
  padding: 40px 32px;
}
@media (min-width: 800px) {
  .panel {
    padding: 64px;
  }
}
.panel .headline {
  margin-bottom: 16px;
}
.panel p {
  color: var(--mist);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.chip {
  background: var(--graphite);
  color: var(--paper);
  border-radius: var(--radius-button);
  padding: 12px 20px;
  font-weight: 500;
}

/* Fee schedule */
.fee {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 200px;
}
.fee__detail {
  margin-top: 8px;
}
.card .fee__price {
  font-weight: 600;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.terms {
  margin-top: 48px;
  display: grid;
  gap: 32px;
}
@media (min-width: 800px) {
  .terms {
    grid-template-columns: repeat(3, 1fr);
  }
}
.terms h3 {
  margin-bottom: 8px;
}
.terms p {
  color: var(--stone);
}

/* Call to action */
.cta {
  background: var(--sand);
  border-radius: var(--radius-card);
  padding: 40px 32px;
}
@media (min-width: 800px) {
  .cta {
    padding: 64px;
  }
}
.cta .headline {
  margin-bottom: 16px;
}
.cta p {
  color: var(--stone);
  margin-bottom: 32px;
}
.cta .small {
  margin: 24px 0 0;
}

/* Inner pages */
.page-head {
  padding: 56px 0 24px;
}
@media (min-width: 800px) {
  .page-head {
    padding: 96px 0 32px;
  }
}
.page-head .display {
  margin-bottom: 24px;
}
.page-head p {
  color: var(--stone);
}
.page-head .meta {
  margin-top: 16px;
}

.callout {
  margin-top: 32px;
  max-width: 720px;
  background: var(--sand);
  border-radius: var(--radius-card);
  padding: 24px 28px;
}
.callout h2 {
  font-weight: 600;
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 4px;
}
.callout p {
  color: var(--stone);
}
.callout p + p {
  margin-top: 8px;
}

/* Legal pages */
.prose {
  max-width: 68ch;
}
.prose h2 {
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  scroll-margin-top: 96px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p + p {
  margin-top: 16px;
}
.prose ul {
  list-style: disc;
  padding-left: 24px;
  margin: 16px 0;
  display: grid;
  gap: 8px;
}
.prose li::marker {
  color: var(--stone);
}
.prose a {
  font-weight: 500;
}

/* Instruct me */
.instruct-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 960px) {
  .instruct-layout {
    grid-template-columns: 5fr 7fr;
    gap: 32px;
  }
}
.urgent {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-card);
  padding: 40px 32px;
}
.urgent h2 {
  color: var(--paper);
  margin-bottom: 12px;
}
.urgent p {
  color: var(--mist);
  margin-bottom: 24px;
}
.urgent .btn {
  width: 100%;
}
.urgent .small {
  color: var(--ash);
  margin: 16px 0 0;
}

.form-card {
  background: var(--sand);
  border-radius: var(--radius-card);
  padding: 32px;
}
@media (min-width: 800px) {
  .form-card {
    padding: 40px;
  }
}
.form {
  display: grid;
  gap: 24px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label,
.field .field-label {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}
.field .req {
  color: var(--stone);
  font-weight: 400;
  font-size: 14px;
  margin-left: 8px;
}
.field .hint {
  color: var(--stone);
  font-size: 14px;
  line-height: 20px;
}
.field input:not([type='checkbox']),
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--stone);
  border-radius: var(--radius-button);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--radius-button);
}
.field [aria-invalid='true'] {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 0;
}
.error {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}
.check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.check input {
  width: 28px;
  height: 28px;
  margin: 0;
  accent-color: var(--ink);
}
.check label {
  font-weight: 400;
}
.check .error {
  grid-column: 2;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  color: var(--stone);
}
.form-status {
  padding: 16px 20px;
  border-radius: var(--radius-button);
  background: var(--paper);
  color: var(--ink);
}
.form-status a {
  font-weight: 600;
}
.success {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 32px;
}
.success h2 {
  margin-bottom: 12px;
}
.success p {
  color: var(--stone);
}
.success:focus {
  outline: none;
}
.nojs {
  background: var(--paper);
  border-radius: var(--radius-button);
  padding: 16px 20px;
}

/* 404 */
.lost {
  padding: 96px 0 128px;
}
.lost .display {
  margin-bottom: 24px;
}
.lost p {
  color: var(--stone);
  margin-bottom: 32px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: 72px 0 48px;
}
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
  }
}
.footer-about {
  margin-top: 24px;
  max-width: 44ch;
}
.site-footer h2 {
  color: var(--paper);
  margin-bottom: 16px;
}
.site-footer ul {
  display: grid;
  gap: 12px;
}
.site-footer a {
  color: var(--mist);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--paper);
  text-decoration: underline;
}
.site-footer .phone {
  color: var(--paper);
  font-weight: 600;
  font-size: 24px;
  line-height: 26px;
}
.legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--graphite);
  color: var(--ash);
  display: grid;
  gap: 4px;
}

/* Cookie notice */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 560px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-card);
  padding: 24px;
}
@media (min-width: 640px) {
  .cookie {
    left: 24px;
    right: auto;
    bottom: 24px;
  }
}
.cookie h2 {
  font-weight: 600;
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 8px;
}
.cookie p {
  color: var(--mist);
  margin-bottom: 20px;
}
.cookie a {
  color: var(--paper);
}
.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.cookie .btn {
  min-height: 48px;
  padding: 0 28px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}
.cookie .btn:hover {
  background: var(--sand);
}
.cookie :focus-visible {
  outline-color: var(--paper);
}
