/* ================================================================
   JKs PIXEL FORGE — jkspixelforge.com
   Sibling design family with the other two sites
   Amber accent added to complement the logo
   Mobile-first, WCAG 2.1 AA
   ================================================================ */

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

:root {
  --bg-deep: #050816;
  --bg-mid: #0a0e27;
  --bg-panel: #111634;
  --bg-elevated: #1a2050;
  --cyan: #5eddff;
  --cyan-bright: #8ef0ff;
  --cyan-dim: #3b9dbf;
  --amber: #f5b942;
  --amber-bright: #ffd574;
  --amber-dim: #b88a30;
  --purple: #a06bff;
  --ink: #e8ecff;
  --ink-soft: #c4cadf;
  --ink-mute: #8a92b3;
  --rule: rgba(94, 221, 255, 0.18);
  --rule-amber: rgba(245, 185, 66, 0.22);
  --rule-soft: rgba(94, 221, 255, 0.08);

  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  --font-body: Georgia, "Times New Roman", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --maxw: 1100px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-pad: clamp(3rem, 8vw, 6rem);
  --radius: 6px;
  --radius-lg: 12px;
}

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

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--amber-bright); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--amber);
  color: var(--bg-deep);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ================================================================
   HERO — Chalkboard background + logo + tagline + form CTA
   ================================================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3rem, 6vw, 4rem);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(180deg, rgba(5,8,22,0.7) 0%, rgba(5,8,22,0.85) 60%, rgba(5,8,22,1) 100%),
    url("hero.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, transparent 0%, rgba(5,8,22,0.4) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--amber-bright);
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.hero-logo {
  margin: 0 auto 1.5rem;
  max-width: 480px;
}

.hero-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cyan-bright);
  margin: 0.5rem 0 0;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(94, 221, 255, 0.35);
}

.hero-subtagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--amber-bright);
  margin: 0.5rem 0 1.5rem;
  letter-spacing: 0.03em;
}

.hero-lede {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--ink-soft);
  margin: 0 auto 2rem;
  max-width: 56ch;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   BUTTONS — amber-led for Pixel Forge identity
   ================================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  min-width: 200px;
  line-height: 1.2;
}
.btn-primary {
  background: var(--amber);
  color: var(--bg-deep);
  border-color: var(--amber);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--amber-bright);
  border-color: var(--amber-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 185, 66, 0.35);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  background: transparent;
  color: var(--amber-bright);
  border-color: var(--amber-dim);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--amber);
  background: rgba(245, 185, 66, 0.08);
}

/* ================================================================
   SECTIONS
   ================================================================ */
section { padding: var(--section-pad) 0; position: relative; }

.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--amber);
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--amber-bright);
  margin: 0 0 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1.25rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

em { color: var(--amber-bright); font-style: italic; font-weight: normal; }

/* ================================================================
   SERVICES GRID
   ================================================================ */
.services {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}

.services-lede {
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 720px;
  margin: 0 0 2.5rem;
  line-height: 1.6;
}

.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: rgba(17, 22, 52, 0.6);
  border: 1px solid var(--rule-amber);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  border-color: var(--amber-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 185, 66, 0.08);
}
.service-card h3 { margin-top: 0; }
.service-card p { font-size: 0.95rem; margin-bottom: 0; line-height: 1.55; }

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact { background: var(--bg-panel); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.contact-intro p { font-size: 1.05rem; }
.contact-email {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--amber-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-dim);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.contact-email:hover, .contact-email:focus-visible {
  border-bottom-color: var(--amber-bright);
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form .field { display: flex; flex-direction: column; }
.contact-form label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--amber);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.18);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.5;
}
.contact-form button { margin-top: 0.5rem; width: 100%; }
.honeypot { position: absolute; left: -9999px; visibility: hidden; }
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: rgba(245, 185, 66, 0.1); border: 1px solid var(--amber-dim); color: var(--amber-bright); }
.form-status.error   { background: rgba(255, 100, 100, 0.1); border: 1px solid #c66; color: #ffb0b0; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--rule-soft);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--amber-bright); }
.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin: 0;
}

/* ================================================================
   PRIVACY POLICY PAGE
   ================================================================ */
.policy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
}
.policy-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--amber-bright);
  margin: 0 0 0.5rem;
}
.policy-page h2 {
  font-size: 1.3rem;
  color: var(--amber-bright);
  margin: 2.5rem 0 1rem;
  letter-spacing: 0;
}
.policy-page .last-updated {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin: 0 0 2rem;
}
.policy-page p, .policy-page li { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.policy-page ul { padding-left: 1.5rem; margin: 0 0 1.25rem; }
.policy-page li { margin-bottom: 0.25rem; }
.policy-page a { color: var(--amber-bright); }
.policy-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--font-ui);
  color: var(--amber-bright);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ================================================================
   PREFERS REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
