:root {
  --bg: #f0efe9;
  --surface: #e8e7e1;
  --border: #d8d7d0;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --danger: #dc2626;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --max-w: 1080px;
  --radius: 6px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a { color: var(--text-muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

/* Hero */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}

#hero-stripes {
  display: block;
  width: 100vw;
  height: 72px;
  pointer-events: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.hero-heading-top { margin-bottom: 0.5rem; }
.hero-heading-bottom { margin-top: 0.5rem; margin-bottom: 2rem; }

.hero-inner { max-width: 760px; margin: 0 auto; }

.accent { color: var(--accent); }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.7;
}

/* Buttons */
@keyframes btn-fire {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  40%  { transform: scale(0.96); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-primary.btn-firing { animation: btn-fire 0.25s ease-out; pointer-events: none; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

/* Sections */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--surface); }

.container { max-width: var(--max-w); margin: 0 auto; }
.container-narrow { max-width: 680px; margin: 0 auto; }

.section h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section p { color: var(--text-muted); margin-bottom: 1rem; }

/* Services list */
.services-list {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.service-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.service-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.service-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.service-body p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
  line-height: 1.65;
}

.about-detail {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* CTA section */
.cta-section { text-align: center; }
.cta-section p { margin-bottom: 2rem; }

/* Contact form */
.contact-section h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.contact-sub { color: var(--text-muted); margin-bottom: 2.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label { font-size: 0.875rem; font-weight: 500; color: var(--text); }

.required { color: var(--accent); }

.field input,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  transition: border-color 0.15s;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea { resize: vertical; min-height: 120px; }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.3);
  color: #00c896;
}

.alert-error {
  background: rgba(224, 84, 84, 0.1);
  border: 1px solid rgba(224, 84, 84, 0.3);
  color: var(--danger);
}

/* HTMX loading indicator */
.htmx-indicator { opacity: 0; transition: opacity 0.2s; }
.htmx-request .htmx-indicator { opacity: 0.5; }

/* Footer */
.site-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 600px) {
  .site-nav { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .hero { padding: 3rem 1rem; }
  .section { padding: 3rem 1rem; }
  .service-item { grid-template-columns: 2.5rem 1fr; gap: 1.5rem; }
}
