/* Nisharp Digital
   Colours are taken from the logo: a ring that runs from charcoal to red. */

:root {
  --red: #E31E24;
  --oxblood: #8E2126;
  --charcoal: #2A2324;
  --paper: #FFFFFF;
  --ash: #F3F0F0;
  --smoke: #6B6364;
  --line: #DED8D8;
  --ring: linear-gradient(135deg, var(--charcoal) 8%, var(--oxblood) 52%, var(--red) 92%);

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.2rem + 4.6vw, 4.5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
}

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

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 108%; font-weight: 700; line-height: 1.2; }

p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 780px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

.lead { font-size: var(--step-1); color: var(--smoke); max-width: 46ch; }
.fine { font-size: var(--step--1); color: var(--smoke); margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 var(--step-0)/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--oxblood); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--oxblood); }
.btn-line { border-color: var(--charcoal); color: var(--charcoal); }
.btn-line:hover { background: var(--charcoal); color: #fff; }
.btn-white { background: #fff; color: var(--charcoal); }
.btn-white:hover { background: var(--ash); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.text-link {
  font-weight: 600;
  color: var(--red);
  text-underline-offset: 0.2em;
}
.text-link:hover { color: var(--oxblood); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) {
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-color: var(--line); }
.site-nav a[aria-current="page"] { border-color: var(--red); }
.nav-cta { padding: 0.6em 1.1em; font-size: var(--step--1); }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  padding: 0.45em 1em;
  font: 600 var(--step--1) var(--body);
  color: var(--charcoal);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { font-size: var(--step-1); padding-block: 0.5rem; }
  .nav-cta { margin-top: 0.75rem; }
}

/* Sections */
.section { padding-block: var(--section); }
.section-ash { background: var(--ash); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--smoke); margin: 0; }

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-head h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem); }
.page-head + .section { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* Image beside text */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 6px;
}
.split .btn { margin-top: 0.75rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.group-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; }
.group-meta span { font-weight: 600; color: var(--charcoal); }

/* Associate page */
.steps { counter-reset: step; margin-top: 1.25rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.25rem 3.25rem;
  max-width: 56ch;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ring);
  color: #fff;
  font: 700 1rem var(--display);
}
.terms { margin: 1.25rem 0 2rem; }
.terms li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.5rem;
  border-top: 1px solid var(--line);
}
.terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* About page */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.founder-photo {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ring);
  color: rgba(255, 255, 255, 0.9);
  font: 800 clamp(2.5rem, 8vw, 4rem) var(--display);
  font-stretch: 118%;
}
.role { color: var(--smoke); margin-top: -0.4em; }
@media (max-width: 700px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 240px; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid #9C9495;
  border-radius: 6px;
  background: #fff;
  color: var(--charcoal);
  font: inherit;
}
.field input[aria-invalid="true"] { border-color: var(--red); }
.error { margin: 0.35rem 0 0; color: #B3141A; font-size: var(--step--1); }
/* Footer */
.site-footer { background: var(--charcoal); color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem 2rem;
  font-size: var(--step--1);
}
.footer-grid p { margin-bottom: 0.4em; color: rgba(255, 255, 255, 0.8); max-width: 34ch; }
.footer-grid .footer-brand {
  font: 800 var(--step-1) var(--display);
  font-stretch: 118%;
  color: #fff;
}
.footer-grid .footer-head { font-weight: 600; color: #fff; margin-bottom: 0.6em; }
.footer-grid li { margin-bottom: 0.4em; }
.footer-grid a { color: rgba(255, 255, 255, 0.8); text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  padding-block: 1.25rem 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.65);
}
.footer-base p { margin: 0; max-width: none; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(42, 35, 36, 0.35);
}
.wa-float:hover { background: var(--oxblood); }
