/* dyk0techs, LLC — landing page styles. No framework, no external fonts. */
/* Palette: Oxford green (brand/structure) + gold (call-to-action/accent). */

/* Committed to the dark Oxford-green theme as the single brand look. */
:root {
  --bg: #161816;        /* near-black green */
  --bg-alt: #1d211c;    /* slightly lifted band */
  --surface: #202420;
  --border: #333a31;
  --text: #f8f7f3;      /* warm off-white */
  --text-muted: #b4bbad;

  --brand: #a9c4b0;         /* light sage — readable green on dark */
  --brand-hover: #c2d6c7;

  --cta-bg: #c87f0a;        /* gold — primary buttons */
  --cta-hover: #e0982a;
  --cta-text: #161816;      /* near-black on gold */

  --gold-accent: #e6a93a;   /* bright gold for text/eyebrow/accents */
  --focus: #e6a93a;

  --radius: 12px;
  --maxw: 68rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

a { color: var(--brand); }

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

/* Brand "0" — digital slashed zero. Gold glyph with an overlaid slash. */
.z {
  position: relative;
  display: inline-block;
  color: var(--gold-accent);
  font-weight: 700;
}
.z::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.7em;
  height: 0.1em;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(-20deg);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.container.narrow { max-width: 48rem; }

/* Accessibility: visible focus + skip link */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
}
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-hover); }
.btn-link {
  background: transparent;
  color: var(--brand);
  padding-inline: 0.25rem;
}
.btn-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  position: sticky;
  top: 0;
  backdrop-filter: saturate(1.4) blur(6px);
  z-index: 5;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand { display: inline-flex; align-items: center; }

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 6rem); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  margin: 0 0 1rem;
  max-width: 20ch;
}
.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

/* Services */
.services { padding-block: clamp(2.5rem, 7vw, 4.5rem); background: var(--bg-alt); border-block: 1px solid var(--border); }
.services h2, .about h2, .contact h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 1.75rem;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid var(--brand); /* Oxford-green cap */
}
.card h3 { margin: 0 0 0.6rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--text-muted); }

/* About */
.about { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.about p { font-size: 1.15rem; color: var(--text-muted); margin: 0; }

/* Contact */
.contact { padding-block: clamp(2.5rem, 7vw, 4.5rem); background: var(--bg-alt); border-top: 1px solid var(--border); }
.contact .lede { margin-bottom: 1.5rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 1.75rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-inner p { margin: 0; }

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