/* Varo Consulting — one-page site */

:root {
  /* Brand */
  --ink: #14213d;
  --ball: #2a8fa8;        /* Lines, dots, large numbers only. 3.3:1 on Ground. */
  --ball-text: #14768c;   /* Accent for small text and links. 4.6:1 on Ground. */
  --ground: #eef0f4;

  /* Supporting */
  --surface: #ffffff;
  --border: #cccfd7;
  --text-muted: #3d4f73;
  --ink-hover: #2f4063;
  --on-dark: #eef0f4;
  --on-dark-muted: #bfc7d5;

  --font-display: "Nunito", system-ui, sans-serif;
  --font-text: "Source Sans 3", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 5.75rem;
}

/* Base */

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

html {
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

h3 {
  font-size: 1.3125rem;
}

p {
  margin: 0;
}

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

a {
  color: var(--ball-text);
  text-underline-offset: 0.2em;
}

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

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  font-size: 1rem;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

.btn--light {
  background: var(--ground);
  border-color: var(--ground);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--surface);
  border-color: var(--ball);
}

/* Eyebrow labels open each section with the ball as a dot */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  color: var(--ball-text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ball);
}

.eyebrow--on-dark {
  color: var(--on-dark-muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(238 240 244 / 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.2) blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/*
 * Logo crop. The SVG files carry wide built-in padding, so the wrapper
 * shows only the drawn logo. --logo-h is the drawn height. Ratios come
 * from the files' viewBox and data-ink values. The files are unchanged.
 */

.logo {
  --logo-h: 4rem;

  display: block;
  flex: none;
  width: calc(var(--logo-h) * 2.1343);
  height: var(--logo-h);
  overflow: hidden;
}

.logo img {
  width: calc(var(--logo-h) * 4.2686);
  max-width: none;
  height: calc(var(--logo-h) * 3.1343);
  margin: calc(var(--logo-h) * -1.0672);
}

/* Hero */

.hero {
  padding-block: clamp(4.5rem, 12vw, 9rem) clamp(4rem, 10vw, 7.5rem);
}

.hero h1 {
  max-width: 16ch;
}

.hero__lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: clamp(1.1875rem, 2.4vw, 1.375rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* Sections */

.section {
  padding-block: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--border);
}

.section--surface {
  background: var(--surface);
}

.section--ink {
  background: var(--ink);
  color: var(--on-dark);
  border-top: 0;
}

.lead {
  max-width: 36rem;
  font-size: 1.25rem;
}

/* What we do */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.75rem 1.5rem 2rem;
  background: var(--ground);
  border-top: 2px solid var(--ball);
  border-radius: 0 0 8px 8px;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
}

/* Who it's for */

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: start;
  }
}

.checklist {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ball);
  transform: translateY(-0.1em);
}

.split__aside {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border-left: 2px solid var(--ball);
}

.split__aside h3 {
  margin-bottom: 0.75rem;
}

.split__aside p {
  color: var(--text-muted);
}

/* How it works */

.steps {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--ball);
}

.step__num {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--ball);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.step h3 {
  margin-bottom: 0.625rem;
}

.step p {
  color: var(--text-muted);
}

/* Our approach */

.principles {
  display: grid;
  gap: 0;
  margin: 0;
}

@media (min-width: 52rem) {
  .principles {
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
  }
}

.principle {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.principle dt {
  margin-bottom: 0.375rem;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 800;
}

.principle dd {
  margin: 0;
  color: var(--text-muted);
}

.approach-intro {
  display: grid;
  gap: 0 4rem;
  margin-bottom: 1rem;
}

@media (min-width: 52rem) {
  .approach-intro {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.name-note {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border-left: 2px solid var(--ball);
}

.name-note__term {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.625rem;
}

.name-note__term [lang="it"] {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
}

.name-note__gloss {
  color: var(--ball-text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.name-note p:last-child {
  color: var(--text-muted);
}

/* Contact */

.contact__inner > * {
  max-width: 44rem;
}

.contact h2 {
  margin-bottom: 1.25rem;
}

.contact__lead {
  margin-bottom: 2.5rem;
  color: var(--on-dark-muted);
  font-size: 1.25rem;
}

.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--ball);
}

/* Footer */

.site-footer {
  padding-block: 2.5rem;
  background: var(--ink);
  color: var(--on-dark-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(238 240 244 / 0.16);
}

.site-footer__logo {
  --logo-h: 3.5rem;
}

.site-footer p {
  font-size: 0.9375rem;
}

/* Phones */

@media (max-width: 30rem) {
  :root {
    --header-h: 5.25rem;
  }

  body {
    font-size: 1.0625rem;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }
}
