/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf8;
  --fg: #111110;
  --muted: #666662;
  --accent: #111110;
  --border: #e5e5e2;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max: 1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--fg);
}

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

nav ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}

nav ul a:hover { color: var(--fg); }

.btn-nav {
  color: var(--fg) !important;
  font-weight: 500;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s !important;
}

.btn-nav:hover {
  background: var(--fg);
  color: var(--bg) !important;
}

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 80px;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.subhead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.8; }

/* Services */
#services {
  border-top: 1px solid var(--border);
  padding: 80px 2rem;
}

.services-list {
  max-width: var(--max);
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services-list li {
  display: flex;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.service-num {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-top: 0.25rem;
  min-width: 28px;
}

.services-list h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.services-list p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 540px;
}

/* About */
#about {
  border-top: 1px solid var(--border);
  padding: 100px 2rem;
}

.about-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
}

.about-label, .contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}

.about-content h2, .contact-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 580px;
  font-size: 1rem;
}

/* Contact */
#contact {
  border-top: 1px solid var(--border);
  padding: 100px 2rem;
}

.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
}

.contact-content p {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 540px;
}

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

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}

input, textarea {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--fg);
  transition: border-color 0.15s;
  outline: none;
  resize: vertical;
}

input::placeholder, textarea::placeholder { color: #aaa; }

input:focus, textarea:focus {
  border-color: var(--fg);
}

.form-success {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hidden { display: none; }

/* Field validation */
input.input-error, textarea.input-error {
  border-color: #c0392b;
}

.field-error {
  font-size: 0.8rem;
  color: #c0392b;
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--fg);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 999;
  white-space: nowrap;
}

.toast-error {
  background: #c0392b;
}

.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 700px) {
  .about-inner, .contact-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-list li {
    gap: 1.5rem;
  }

  nav ul { gap: 1rem; }
}
