/* ============================================================
   Match Development, LLC — design system
   ============================================================ */

:root {
  --bg: #191313;
  --bg-alt: #211919;
  --surface: #2A1F1F;
  --surface-hover: #342828;
  --border: #382B2B;
  --text: #f3f2ee;
  --text-muted: #AFAFAF;
  --text-faint: #767676;
  --accent: #DE2921;
  --accent-hover: #DE332C;
  --accent-text: #DF5953;
  --accent-soft: rgba(222, 41, 33, 0.12);
  --accent-border: rgba(222, 41, 33, 0.35);

  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --max-width: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 19, 19, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; display: block; }

/* Wordmark is Agency FB converted to outlines -- the brand's own typeface,
   which is licensed for desktop use only and so cannot ship as a webfont. */
.logo-wordmark {
  height: 19px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -26px;
  height: 2px;
  background: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-phone {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 780px;
  color: var(--text);
}

.hero .lede {
  font-size: 1.15rem;
  max-width: 620px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Page header (non-home) ---------- */

.page-header {
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  max-width: 700px;
}
.page-header .lede {
  font-size: 1.1rem;
  max-width: 600px;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */

section { padding: 90px 0; }
section.alt { background: var(--bg-alt); }
.section-border { border-bottom: 1px solid var(--border); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head .eyebrow-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
  display: block;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--text);
}

/* ---------- Cards / Grid ---------- */

.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--accent-border);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 10px;
}
.card p { margin: 0; font-size: 0.95rem; }

/* ---------- Philosophy / quote block ---------- */

.quote-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
}
.quote-block p {
  font-size: 1.25rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Milestones / timeline ---------- */

.milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.milestone {
  flex: 1 1 200px;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.milestone .year {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
.milestone .desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Tags / industries ---------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stat {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-text);
  display: block;
  margin-bottom: 6px;
}
.stat .label {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Credentials strip ---------- */

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  flex: 1 1 260px;
}
.credential .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.credential .icon svg { width: 18px; height: 18px; }
.credential .name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 64px 48px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 14px;
}
.cta-band p {
  max-width: 480px;
  margin: 0 auto 32px;
}
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.contact-item:first-of-type { border-top: none; padding-top: 0; }
.contact-item .icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item .icon svg { width: 18px; height: 18px; }
.contact-item .label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.contact-item .value {
  color: var(--text);
  font-weight: 500;
}
.contact-item .value:hover { color: var(--accent-text); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 340px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9);
}

/* ---------- Forms ---------- */

.lead-form .field { margin-bottom: 18px; }
.lead-form .field:last-of-type { margin-bottom: 22px; }

.lead-form label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 7px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lead-form textarea { resize: vertical; min-height: 118px; }

.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--text-faint); }

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lead-form input:user-invalid,
.lead-form textarea:user-invalid { border-color: #b4553c; }

/* honeypot — hidden from humans, visible to naive bots */
.lead-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.86rem;
  color: var(--text-faint);
  margin: 14px 0 0;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
}
.form-status.is-err {
  background: rgba(180, 85, 60, 0.12);
  border: 1px solid rgba(180, 85, 60, 0.4);
  color: var(--text);
}

.lead-form button[disabled] { opacity: 0.6; cursor: default; }

/* compact inline variant used in CTA bands */
.lead-form.is-inline {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: start;
  max-width: 720px;
  margin: 22px auto 0;
  text-align: left;
}
.lead-form.is-inline .field { margin-bottom: 0; }
.lead-form.is-inline label { display: none; }
.lead-form.is-inline .form-note,
.lead-form.is-inline .form-status { grid-column: 1 / -1; margin-top: 4px; }

@media (max-width: 680px) {
  .lead-form.is-inline { grid-template-columns: 1fr; }
  /* 16px minimum stops iOS Safari zooming the page on field focus */
  .lead-form input,
  .lead-form textarea { font-size: 16px; }
}

/* ---------- Founder ---------- */

.founder {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
}
.founder img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.founder .role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 6px;
}
@media (max-width: 680px) {
  .founder { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner .logo-wordmark { height: 17px; }
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-faint);
  width: 100%;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 28px; }
}

@media (max-width: 980px) {
  .nav-phone { display: none; }
}

@media (max-width: 860px) {
  .nav-links, .nav-right .btn {
    display: none;
  }
  .nav-toggle { display: flex; }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }
  body.nav-open .nav-links a.active::after { display: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 80px 0 60px; }
  section { padding: 64px 0; }
}
