/* TwelveTen Digital: the whole site's design lives in this one file.
   To rebrand, start with the variables below: colours, fonts, sizes and
   spacing. Every page uses the same few classes, so a change here changes
   the whole site. The look is deliberately neutral so branding can drop in. */

:root {
  /* Colours */
  --ink: #111111;          /* main text and dark sections */
  --paper: #ffffff;        /* page background */
  --surface: #f4f4f2;      /* cards and alternate sections */
  --muted: #5c5c5c;        /* secondary text */
  --line: #e2e2df;         /* borders and dividers */
  --accent: #111111;       /* buttons and highlights: the first brand colour goes here */
  --on-accent: #ffffff;    /* text on the accent colour */

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font);  /* headings; swap in a brand typeface here */
  --text: 1.0625rem;
  --line-height: 1.6;

  /* Space and shape */
  --space: 1.5rem;         /* the basic gap; most spacing is a multiple of it */
  --page: 72rem;           /* widest the layout gets */
  --measure: 40rem;        /* widest a paragraph gets */
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 calc(var(--space) / 2); }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -0.035em; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 var(--space); }
p { max-width: var(--measure); }

.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 36rem; }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; text-decoration: none; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .nav-cta { color: var(--on-accent); background: var(--accent); padding: 0.45rem 0.95rem; border-radius: 999px; font-weight: 600; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { color: var(--on-accent); opacity: 0.85; }

/* Sections */
.section { padding: calc(var(--space) * 3) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--surface { background: var(--surface); border-top: 0 !important; }
.section-head { margin-bottom: calc(var(--space) * 1.5); }
.section-head p { color: var(--muted); }
.hero { padding: calc(var(--space) * 3.5) 0 calc(var(--space) * 3); }
@media (min-width: 48rem) {
  .section { padding: calc(var(--space) * 4) 0; }
  .hero { padding: calc(var(--space) * 5) 0 calc(var(--space) * 4); }
}

/* Two columns on wide screens: a heading on the left, text on the right */
.split { display: grid; gap: var(--space); }
@media (min-width: 48rem) { .split { grid-template-columns: 1fr 2fr; gap: calc(var(--space) * 2); } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: calc(var(--space) * 1.5); }
.button { display: inline-block; padding: 0.8rem 1.35rem; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.button:hover { opacity: 0.85; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Cards */
.cards { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; height: 100%; padding: calc(var(--space) * 1.1); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.card p { color: var(--muted); margin: 0; }
a.card:hover { border-color: var(--ink); }
.card h3::after { content: " \2192"; }
.section--surface .card { border-color: transparent; }
.section--surface a.card:hover { border-color: var(--ink); }

/* Numbered steps */
.steps { display: grid; gap: calc(var(--space) * 1.5); list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: "0" counter(step); display: block; font-weight: 700; color: var(--muted); margin-bottom: 0.5rem; }
.steps p { color: var(--muted); margin: 0; }

/* Service list on the Services page */
.service { padding: calc(var(--space) * 2) 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.service:first-child { border-top: 0; padding-top: 0; }
.service p { margin: 0; }

/* Plain list with ticks */
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.6rem; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; font-weight: 700; }

/* Dark call-to-action band */
.cta { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: calc(var(--space) * 2); }
.cta p { color: #c9c9c9; }
@media (min-width: 48rem) { .cta { padding: calc(var(--space) * 3); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: calc(var(--space) * 2) 0; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

.note { margin-top: var(--space); color: var(--muted); }
