/* robinarmstead.com — clean rebuild (Nov 2026). Design tokens taken from the original site. */
:root {
  --accent: #e560b9;      /* links, buttons, icons */
  --magenta: #ed1e79;     /* About section background */
  --black: #080808;
  --ink: #151515;
  --text: #252525;
  --white: #ffffff;
  --muted-on-dark: rgba(255, 255, 255, 0.72);
  --header-h: 80px;
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.05em; line-height: 1.15; margin: 0; }
h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.03em; margin: 0 0 .5em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--accent); color: var(--white); padding: .5rem 1rem; border-radius: 4px; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 30px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: var(--black); box-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.header-inner { max-width: 1400px; margin: 0 auto; height: 100%; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: block; line-height: 0; }
.logo img { height: 56px; width: auto; }
.logo:hover { text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a {
  font-family: var(--font-body); font-weight: 500; font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--white); position: relative; padding: 6px 0;
}
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover, .site-nav a.is-active { text-decoration: none; color: var(--white); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--white); background: var(--ink); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: #1a1c1e url("/assets/img/hero.jpg") center center / cover no-repeat;
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 22, 24, 0.35); }
.hero-inner { position: relative; padding: calc(var(--header-h) + 20px) 20px 80px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-description { font-family: var(--font-head); font-weight: 500; font-size: 20px; letter-spacing: -0.03em; margin: 0 0 10px; }
.hero-title { font-size: clamp(56px, 10vw, 125px); line-height: 1; letter-spacing: -0.05em; margin: 0 0 34px; }
.hero-btn {
  display: inline-block; font-family: var(--font-body); font-size: 16px; font-weight: 500;
  background: var(--white); color: #000; border-radius: 50px; padding: 12px 40px;
  transition: background-color .2s ease, color .2s ease;
}
.hero-btn:hover { background: rgba(255, 255, 255, .8); color: rgba(0, 0, 0, .8); text-decoration: none; }
.hero-down { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); color: var(--white); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
.section { padding: 75px 0 55px; }
.section-header { margin-bottom: 40px; text-align: left; }
.section-title { font-size: 35px; }
.section-lead { font-family: var(--font-label); font-size: 20px; line-height: 30px; margin: 12px 0 0; }

.section-about { background: var(--magenta); color: var(--white); }
.section-about .lead p { font-family: var(--font-label); font-size: 20px; line-height: 30px; margin: 0 0 1.2em; max-width: 1000px; }

.section-services { background: var(--white); }
.section-services .section-lead { color: var(--text); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service { text-align: center; margin-top: 10px; }
.service-icon { color: var(--accent); width: 64px; height: 64px; margin: 0 auto 18px; }
.service-icon svg, .counter-icon { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 18px; color: var(--text); }
.service p { font-size: 14px; margin: 0; }

.section-dark { background: var(--black); color: var(--white); }
.section-dark .section-lead { color: var(--muted-on-dark); }

.section-numbers { padding: 85px 0 46px; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.counter-icon { width: 64px; height: 64px; color: var(--white); margin: 0 auto 14px; display: block; }
.count { display: block; font-family: var(--font-head); font-weight: 700; font-size: 60px; letter-spacing: -0.04em; line-height: 1.1; color: var(--white); }
.counter-label {
  display: inline-block; margin-top: 8px; font-family: var(--font-body); font-weight: 500; font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--white); position: relative; padding-bottom: 4px;
}
.counter-label::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .4); }
.counter-label:hover { text-decoration: none; color: var(--accent); }

.portfolio-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-grid a { display: block; overflow: hidden; border-radius: 2px; background: var(--black); aspect-ratio: 16 / 9; }
.portfolio-grid img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.portfolio-grid a:hover img, .portfolio-grid a:focus-visible img { transform: scale(1.08); }

.section-contact { background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info h3 { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 20px; margin-bottom: 18px; }
.contact-info p { font-size: 16px; margin: 0 0 10px; }
.contact-info p { color: var(--muted-on-dark); }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-card {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px;
  background: var(--black); border: 1px solid rgba(255, 255, 255, .12); border-radius: 2px;
  color: var(--white); transition: border-color .2s ease, transform .2s ease;
}
.contact-card:hover, .contact-card:focus-visible { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.contact-card svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card-label { display: block; font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.contact-card-value { display: block; font-family: var(--font-head); font-weight: 500; font-size: 19px; letter-spacing: -0.02em; overflow-wrap: anywhere; }

.site-footer { background: var(--black); color: var(--muted-on-dark); text-align: center; padding: 28px 20px; font-size: 13px; }
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-nav ul { gap: 18px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--black);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.is-open { max-height: 80vh; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 10px 30px 20px; }
  .site-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-header.menu-open { background: var(--black); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .section-header { text-align: center; }
  .section-title { font-size: 28px; }
  .section-about .lead p, .section-lead { font-size: 17px; line-height: 27px; }
  .services-grid, .counters, .portfolio-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 30px; }
  .count { font-size: 46px; }
  .contact-card { padding: 16px 18px; gap: 14px; }
  .contact-card svg { width: 28px; height: 28px; }
  .contact-card-value { font-size: 16px; }
  .hero-down { bottom: 40px; }
}
