/* ============================================
   ROWBOTS — SHARED DESIGN SYSTEM
   Aesthetic: industrial typographic minimalism
   Blueprint-technical, editorial, decisive
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --paper:       #f4f1ea;
  --ink:         #1a1a1a;
  --ink-muted:   #6b6b6b;
  --rule:        #c9c4b8;
  --accent:      #d2451e;
  --accent-dim:  #d2451e22;
  --inverted-bg: #1a1a1a;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  3rem;
  --text-hero: clamp(5rem, 14vw, 11rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.frame {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* ——— NAV ——— */
nav {
  border-bottom: 1px solid var(--rule);
  padding: var(--sp-2) 0;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
}
nav .frame {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .dot { color: var(--accent); }

nav ul { list-style: none; display: flex; gap: var(--sp-4); align-items: center; }
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); }
.nav-cta { border: 1px solid var(--ink); padding: 0.4rem 1rem; }
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

/* ——— SECTION SCAFFOLDING ——— */
.section { padding: var(--sp-7) 0; border-bottom: 1px solid var(--rule); }

.section-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.section-meta .index { color: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: var(--sp-5);
  max-width: 900px;
}
.section-title em { font-style: italic; color: var(--accent); font-weight: 400; }

/* ——— BUTTONS ——— */
.btn {
  border: 1px solid var(--ink);
  padding: var(--sp-2) var(--sp-3);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  background: transparent;
  justify-content: space-between;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { border-color: rgba(244,241,234,0.3); color: var(--paper); }
.btn-ghost:hover { background: rgba(244,241,234,0.1); color: var(--paper); }

/* ——— SERVICES LIST (shared component) ——— */
.services-list { border-top: 1px solid var(--ink); }
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 2fr 200px;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background 0.2s;
}
.service-row:hover { background: var(--accent-dim); }
.service-row.featured {
  background: var(--inverted-bg);
  color: var(--paper);
  padding: var(--sp-4) var(--sp-3);
}
.service-num { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent); font-weight: 700; }
.service-name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; }
.service-desc { font-size: var(--text-sm); line-height: 1.5; opacity: 0.85; }
.service-price { font-family: var(--font-mono); font-size: var(--text-sm); text-align: right; font-weight: 500; letter-spacing: 0.02em; }

/* ——— FOOTER ——— */
footer {
  padding: var(--sp-6) 0 var(--sp-4);
  border-top: 1px solid var(--rule);
}
footer .frame {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-4);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.footer-brand .dot { color: var(--accent); }
.footer-tag { font-size: var(--text-sm); color: var(--ink-muted); margin-top: var(--sp-2); max-width: 300px; line-height: 1.5; }
.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: var(--sp-2);
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-1); }
.footer-col a { color: var(--ink); text-decoration: none; font-size: var(--text-sm); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-3);
  margin-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ——— ANIMATIONS ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp 0.8s ease-out both; }
.anim-2 { animation: fadeUp 0.8s ease-out 0.15s both; }
.anim-3 { animation: fadeUp 0.8s ease-out 0.3s both; }
.anim-4 { animation: fadeUp 0.8s ease-out 0.45s both; }

/* ——— RESPONSIVE ——— */
@media (max-width: 1000px) {
  .service-row { grid-template-columns: 48px 1fr; gap: var(--sp-2); }
  .service-row .service-desc, .service-row .service-price { grid-column: 2; }
  .service-price { text-align: left; }
}
@media (max-width: 900px) {
  footer .frame { grid-template-columns: 1fr 1fr; }
  nav ul { gap: var(--sp-2); }
}
@media (max-width: 600px) {
  .frame { padding: 0 var(--sp-2); }
  nav ul li.nav-hide-mobile { display: none; }
}
