/* nsitelabs consulting — shared stylesheet
   Dark, high-contrast theme. One accent color: the red from the logo's dog.
   System fonts only; nothing is loaded from outside. */

:root {
  --black: #0b0c0e;        /* header, footer */
  --bg: #121418;           /* page background */
  --bg-raised: #1b1e24;    /* cards */
  --bg-deep: #0e0f12;      /* alternate sections */
  --line: #2a2e36;         /* hairlines on dark */
  --ink: #f3f4f6;          /* main text on dark (17:1) */
  --muted: #aab2bd;        /* secondary text on dark (8:1) */
  --accent: #c4252d;       /* logo red: buttons and borders (white text on it 6:1) */
  --accent-hover: #a51e25;
  --accent-text: #ff6b70;  /* red for text on dark backgrounds (6:1) */
  --max: 70rem;
  --radius: 4px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; background: var(--black); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { color: #ff9599; }

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { line-height: 1.15; color: #fff; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

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

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

/* ---------- Header & navigation ---------- */
.site-header { background: var(--black); border-bottom: 1px solid #1d2026; }
.site-header .container {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 1.75rem; padding-bottom: 1.25rem; gap: 1.25rem;
}

.brand { display: block; line-height: 0; }
.brand img { width: 340px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid #7a8290; border-radius: var(--radius);
  padding: 0.5rem 0.75rem; font: inherit; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff; cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: inline-block; width: 18px; height: 2px; background: currentColor;
  position: relative; vertical-align: middle;
}
.nav-toggle-bars { margin-right: 0.6rem; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.75rem; }
.site-nav a {
  text-decoration: none; color: #fff;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent-text); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: row; flex-wrap: wrap; justify-content: space-between;
    padding-top: 1rem; padding-bottom: 1rem; gap: 0.75rem;
  }
  .brand img { width: 210px; }
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid #23262d; }
  .site-nav a { display: block; padding: 0.95rem 0; border-bottom: 0; }
  .site-nav a[aria-current="page"] { color: var(--accent-text); }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.05rem 3.25rem; border-radius: var(--radius);
  box-shadow: 0 10px 30px -10px rgba(196, 37, 45, 0.7);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-deep { background: var(--bg-deep); }
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 1rem;
}

/* Hero: charcoal with a soft red glow and a faint data-grid texture (pure CSS, no images) */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(5rem, 14vw, 10rem) 0 clamp(5rem, 13vw, 9rem);
  background:
    radial-gradient(ellipse 70% 55% at 50% 115%, rgba(196, 37, 45, 0.38), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(180deg, #24272d 0%, #17191d 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 60%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 80% at 50% 60%, #000 30%, transparent 85%);
}
.hero .container { position: relative; }
.hero h1 { max-width: 22ch; margin-left: auto; margin-right: auto; }
/* Headline as three stacked lines, one sentence per line */
.hero-lines { max-width: none; font-size: clamp(1.6rem, 0.9rem + 3.6vw, 4rem); }
.hero-lines span { display: block; }
.hero .lede {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); font-weight: 500;
  color: var(--accent-text); max-width: 40rem; margin: 2rem auto 3rem;
}

/* Practice area summary */
.practice-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none; margin: 0 0 3rem; padding: 0;
}
.practice-grid li {
  position: relative; /* anchors the stretched link below */
  background: var(--bg-raised); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.practice-grid li:hover,
.practice-grid li:focus-within { transform: translateY(-3px); border-color: #3a3f48; border-top-color: var(--accent); }
/* The heading link covers the whole card, so the card is one click target with the heading as its name. */
.practice-link { color: inherit; text-decoration: none; }
.practice-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.practice-link:hover { color: inherit; }
.practice-link:focus-visible { outline: none; }
.practice-link:focus-visible::after { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.practice-more {
  display: block; margin-top: 1rem; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text);
  opacity: 0; transform: translateX(-4px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.practice-more::after { content: " \2192"; }
.practice-grid li:hover .practice-more,
.practice-grid li:focus-within .practice-more { opacity: 1; transform: none; }
@media (hover: none) { .practice-more { opacity: 1; transform: none; } }
.practice-num {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em;
  color: var(--accent-text); margin-bottom: 0.75rem;
}
.practice-grid h3 { margin-bottom: 0.6rem; }
.practice-grid p { color: var(--muted); font-size: 0.98rem; margin: 0; }

.center { text-align: center; }
.text-link {
  font-weight: 700; text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.9rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.2rem; color: #fff;
}
.text-link::after { content: "  \2192"; content: "  \2192" / ""; } /* arrow is decorative: hidden from screen readers */
.text-link:hover { color: var(--accent-text); }

/* About */
.about { max-width: 48rem; }
/* Photo sits beside the heading, name and role; the paragraphs run full width underneath. */
.about-head { display: flex; align-items: center; gap: 1.75rem; margin-bottom: 2rem; }
.about-head img {
  flex: none; width: 8.5rem; height: 8.5rem;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--bg-deep), 0 0 0 5px var(--accent), 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}
.about-head h2 { margin-bottom: 0.35rem; }
.about-head p { margin: 0; }
.about-name { font-size: 1.15rem; font-weight: 700; color: #fff; }
.about-role { color: var(--muted); letter-spacing: 0.04em; }
.about-text p { color: #d4d8de; }

@media (max-width: 480px) {
  .about-head { gap: 1.25rem; }
  .about-head img { width: 6.5rem; height: 6.5rem; }
}

/* ---------- Inner page header (services, contact) ---------- */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 130%, rgba(196, 37, 45, 0.32), transparent 70%),
    linear-gradient(180deg, #24272d 0%, #17191d 100%);
}
.page-hero h1 { margin-bottom: 0.5em; }
.page-hero p { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 56rem; margin: 0 auto; }

/* ---------- Services page ---------- */
.service { padding: clamp(3.5rem, 8vw, 5.5rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.service:nth-of-type(even) { background: var(--bg-deep); }
.service-inner {
  display: grid; gap: 1.5rem clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
}
.service-num {
  display: block; font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); font-weight: 800; line-height: 1;
  color: var(--accent); letter-spacing: -0.03em; margin-bottom: 0.75rem;
}
.service h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); margin: 0; }
.service-body {
  /* Same treatment as the page header: dark grey with a soft red glow along the bottom */
  background:
    radial-gradient(ellipse 70% 60% at 50% 130%, rgba(196, 37, 45, 0.30), transparent 70%),
    linear-gradient(180deg, #24272d 0%, #17191d 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.service-body > p { color: #d4d8de; font-size: 1.08rem; margin-bottom: 1.5rem; }
.service-body h3 {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.9rem;
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.7rem; height: 2px; background: var(--accent);
}

@media (max-width: 720px) {
  .service-inner { grid-template-columns: 1fr; }
}

/* Closing call to action band */
.cta-band {
  text-align: center; padding: clamp(4rem, 9vw, 6rem) 0;
  background:
    radial-gradient(ellipse 60% 90% at 50% 120%, rgba(196, 37, 45, 0.35), transparent 70%),
    var(--bg);
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { color: var(--muted); max-width: 34rem; margin: 0 auto 2.25rem; font-size: 1.1rem; }

/* ---------- Contact page ---------- */
.contact-actions { display: flex; justify-content: center; align-items: center; gap: 1rem; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.4rem; height: 3.4rem; border-radius: var(--radius);
  background: var(--bg-raised); border: 1px solid #3a3f48; color: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.icon-link:hover { color: #fff; background: #0a66c2; border-color: #0a66c2; transform: translateY(-1px); }
.contact-wrap { max-width: 42rem; margin: 0 auto; }
.contact-intro { text-align: center; color: #d4d8de; font-size: 1.1rem; margin-bottom: 2.5rem; }

.contact-form {
  background:
    radial-gradient(ellipse 70% 50% at 50% 120%, rgba(196, 37, 45, 0.25), transparent 70%),
    linear-gradient(180deg, #24272d 0%, #17191d 100%);
  border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-row { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.req { color: var(--accent-text); }
.optional { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #0f1114; border: 1px solid #7a8290; border-radius: var(--radius); /* 3.9:1 against the form: WCAG 1.4.11 */
  padding: 0.75rem 0.9rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(255, 107, 112, 0.25); }
.form-note { color: var(--muted); font-size: 0.9rem; margin: -0.25rem 0 1.5rem; }
.contact-form button { border: 0; cursor: pointer; font-family: inherit; }

/* Spam trap field: kept off screen, never seen by people */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Result messages, shown when the page is opened at #sent or #error */
.form-status { display: none; border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-bottom: 2rem; text-align: center; }
.form-status:target { display: block; }
.form-status:focus { outline: none; }
.form-status h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.form-status p { margin: 0; color: #d4d8de; }
.form-status-ok { background: #13261b; border: 1px solid #2f6b45; }
.form-status-error { background: #2a1416; border: 1px solid var(--accent); }
#sent:target ~ .contact-form { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 3px solid var(--accent); padding: 2.25rem 0; font-size: 0.92rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
