/* ShadowFayze Solutions website. Colors and fonts follow business/brand/brand-spec.md. */

@font-face {
  font-family: "Saira Condensed";
  src: url("/assets/fonts/SairaCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("/assets/fonts/SairaCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/BarlowSemiCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/BarlowSemiCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0c0e10;          /* Brand black background */
  --surface: #15181b;     /* Brand camo black */
  --surface-2: #1c2024;
  --line: #2b3035;
  --text: #eef1f2;        /* Brand camo white */
  --muted: #a9b0b6;
  --detail: #d9dde0;      /* Brand detail color on dark */
  --amber: #f0b43c;       /* The game's lever knobs */
  --heading: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow Semi Condensed", "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--detail); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--detail); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 10;
}
.skip:focus { left: 8px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(12, 14, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand span { font-family: var(--heading); font-weight: 800; font-size: 1.4rem; letter-spacing: 0.5px; }
.brand img { border-radius: 8px; }
nav { display: flex; gap: 4px; }
nav a {
  font-family: var(--heading); font-weight: 600; font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: 10px 10px; border-radius: 6px;
}
nav a:hover { color: var(--text); background: var(--surface-2); }

/* Hero */
.hero {
  padding: 56px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124, 130, 136, 0.16), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-logo { width: min(760px, 100%); margin: 0 auto 28px; }
.lead {
  font-family: var(--heading); font-weight: 600; font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.2; margin: 0 0 10px; color: var(--text);
}
.sub { color: var(--muted); margin: 0 auto 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font-family: var(--heading); font-weight: 600; font-size: 1.15rem; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent;
}
.button.primary { background: var(--detail); color: var(--bg); }
.button.primary:hover { background: #fff; color: var(--bg); }
.button.secondary { border-color: #4a5056; color: var(--text); }
.button.secondary:hover { border-color: var(--detail); color: #fff; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 {
  font-family: var(--heading); font-weight: 800; font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 1px; text-transform: uppercase; margin: 0 0 24px; line-height: 1.05;
}
h3 { font-family: var(--heading); font-weight: 800; font-size: 1.6rem; line-height: 1.15; margin: 0 0 10px; }
.section-lead { color: var(--muted); margin: -8px 0 28px; }

/* Game */
.game { display: grid; gap: 28px; align-items: start; }
.shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #c9d3d8; }
.tag {
  display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--amber); color: var(--amber);
  font-family: var(--heading); font-weight: 600; font-size: 0.9rem; letter-spacing: 1.5px; text-transform: uppercase;
}
.working { font-weight: 600; color: var(--muted); font-size: 1.1rem; }
.game-text p { margin: 0 0 14px; }
.points { margin: 0 0 16px; padding: 0; list-style: none; }
.points li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber);
}
.note { color: var(--muted); font-size: 1rem; }
.feedback-links { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: -4px 0 16px !important; font-size: 1rem; }
.feedback-links a { font-weight: 700; }
.feedback-links span { color: var(--muted); }

/* Solutions */
.cards { display: grid; gap: 16px; }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card h3 { font-size: 1.4rem; }
.card p { margin: 0; color: var(--muted); }

/* About page */
.page-top { min-height: calc(100vh - 160px); }
.page-title {
  font-family: var(--heading); font-weight: 800; font-size: clamp(2.4rem, 7vw, 3.5rem);
  letter-spacing: 1px; text-transform: uppercase; margin: 0 0 24px; line-height: 1.05;
}
.about p { max-width: 40em; margin: 0 0 16px; }
.actions.left { justify-content: flex-start; margin-top: 28px; }
.about h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin: 32px 0 12px; }
.find-me { margin-top: 32px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 40em; }
.link-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.link-list a { font-weight: 700; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list span { color: var(--muted); font-size: 1rem; }
.back { margin: 0 0 8px; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }

/* Contact */
.contact p { margin: 0 0 12px; }
.contact-form {
  display: grid; gap: 18px; max-width: 760px; margin: 0 0 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid #4a5056; border-radius: 8px; padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.field.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-end .button { border: 0; cursor: pointer; }
.form-end .button:disabled { opacity: 0.7; cursor: progress; }
.form-status { margin: 0 !important; font-weight: 700; }
.form-status.ok { color: #7ed69a; }
.form-status.bad { color: #ff9c8f; }
.privacy { color: var(--muted); font-size: 1rem; max-width: 760px; }

@media (min-width: 760px) {
  .contact-form { grid-template-columns: 1fr 1fr; padding: 28px; }
  .field.wide { grid-column: 1 / -1; }
}
.email { font-family: var(--heading); font-weight: 600; font-size: clamp(1.4rem, 5vw, 1.9rem); letter-spacing: 0.5px; word-break: break-word; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: 0.95rem; }
.footer-row p { margin: 0 0 6px; }

@media (min-width: 760px) {
  :root { --gutter: 24px; }
  .hero { padding: 88px 0 96px; }
  .section { padding: 88px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer-row { display: flex; justify-content: space-between; gap: 24px; }
}

@media (min-width: 960px) {
  .game { grid-template-columns: 1.35fr 1fr; gap: 40px; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
  nav a { padding: 10px 6px; font-size: 0.95rem; letter-spacing: 0.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
