/* ==========================================================================
   MTV Development — site styles
   --------------------------------------------------------------------------
   Everything color/font related lives in the :root "tokens" below.
   Change a token once and it updates everywhere on the site.
   ========================================================================== */

:root {
  /* Colors */
  --bg: #0B1220;           /* page background (deep navy) */
  --surface: #111A2B;      /* slightly lighter panels (form, terminal box) */
  --line: #1E2A3D;         /* subtle dividers */
  --line-strong: #26354D;  /* input borders, card outlines */
  --fg: #F8FAFC;           /* main text */
  --fg-2: #CBD5E1;         /* secondary text */
  --muted: #94A3B8;        /* labels, captions */
  --accent: #2DD4BF;       /* brand teal (matches the Facebook kit) */
  --accent-hover: #5EEAD4;
  --accent-ink: #06201C;   /* text that sits on top of the teal */
  --ok: #86EFAC;
  --err: #FCA5A5;

  /* Fonts (loaded from Google Fonts in index.html) */
  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Visually hidden but still read by screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Centered content column used by every section */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px; flex-wrap: wrap;
}
.logo {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  color: var(--fg); text-decoration: none; letter-spacing: -0.5px;
  display: flex; align-items: baseline; gap: 2px;
}
.logo .br { font-family: var(--mono); color: var(--accent); font-size: 17px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.nav ul a { font-family: var(--mono); font-size: 14px; color: var(--fg-2); text-decoration: none; }
.nav ul a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-block: 88px 72px; }
.eyebrow {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 20px;
}
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 8vw, 88px); line-height: 1; letter-spacing: -0.03em;
  margin: 0 0 24px; text-wrap: balance;
}
.lede {
  font-size: clamp(19px, 2.2vw, 23px); color: var(--fg-2);
  max-width: 34ch; margin: 0 0 36px; line-height: 1.45;
}
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  padding: 14px 22px; border-radius: 8px; text-decoration: none;
  border: 2px solid var(--accent); display: inline-flex; align-items: center;
  min-height: 48px; cursor: pointer;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: rgba(45, 212, 191, 0.12); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.term {
  margin-top: 56px; font-family: var(--mono); font-size: 14px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 16px 20px; max-width: 560px; overflow-x: auto;
}
.term .p { color: var(--accent); }
.term .ok { color: var(--ok); }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--line); padding-block: 72px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head .tag { font-family: var(--mono); font-size: 14px; color: var(--accent); }
h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.02em; margin: 0; line-height: 1.1;
}

/* Services grid: the 1px gap over a colored background draws the dividers */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.svc { background: var(--bg); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.svc .layer { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.svc h3 { font-family: var(--display); font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.svc p { margin: 0; color: var(--fg-2); font-size: 16px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.about .card {
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 24px; margin: 0;
  font-family: var(--mono); font-size: 14px; color: var(--fg-2);
  display: flex; flex-direction: column; gap: 12px;
}
.about .card dt { color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.about .card dd { margin: 0 0 6px; color: var(--fg); }
.about .text p { margin: 0 0 18px; max-width: 62ch; color: var(--fg-2); }
.about .text p.intro { font-size: 20px; color: var(--fg); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.ways { display: flex; flex-direction: column; gap: 18px; }
.way { display: flex; flex-direction: column; gap: 4px; }
.way .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.way .v { font-size: 18px; color: var(--fg); word-break: break-word; text-decoration: none; }
.way a.v:hover { color: var(--accent); }
.note { font-size: 15px; color: var(--muted); margin: 0; }

/* Inquiry form */
.inquiry-form {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
fieldset.field { border: 0; padding: 0; margin: 0; }
label, legend { font-family: var(--mono); font-size: 13px; color: var(--fg-2); }
legend { margin-bottom: 8px; padding: 0; }
.opt { color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 16px; /* 16px stops iPhones from zooming in on tap */
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }

/* Service "chips" are real checkboxes, styled to look like pills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--mono); font-size: 13px; color: var(--fg-2); cursor: pointer;
}
.chip input:checked + span { background: rgba(45, 212, 191, 0.16); border-color: var(--accent); color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Spam trap: hidden from people, bots fill it in */
.honeypot { position: absolute; left: -9999px; }

.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status { font-family: var(--mono); font-size: 14px; margin: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Phones / small screens ---------- */
@media (max-width: 760px) {
  .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .inquiry-form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .hero { padding-block: 56px 48px; }
  .section { padding-block: 56px; }
}

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