/* AdHaus Digital — v1
   Palette taken from the logo: warm cream ground, dark warm-brown ink, charcoal. */
:root {
  --cream: #f7f2ec;
  --cream-deep: #ede5db;
  --ink: #3f3731;        /* logo brown, darkened slightly for body text contrast */
  --ink-soft: #62574e;
  --charcoal: #2b2b31;
  --charcoal-line: #43434b;
  --on-dark: #f3eee8;
  --on-dark-soft: #bdb6ae;
  --rule: #d9cfc3;
  --focus: #b0612e;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--charcoal); color: var(--on-dark);
  padding: 10px 14px; z-index: 100; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Wordmark: bold "ad" + light "haus", extended width, as in the logo */
.wordmark {
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}
.wordmark b { font-weight: 700; }
.wordmark span { font-weight: 300; }
.wordmark small {
  font-stretch: 100%;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: 0.25em;
  color: var(--ink-soft);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 236, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav ul a:hover { border-bottom-color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--charcoal); color: var(--on-dark);
  border: 1px solid var(--charcoal); border-radius: 4px;
  font: 600 1rem/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn--light { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn .arrow { font-weight: 400; }

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

/* Hero */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 20px;
}
.hero h1 {
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 17ch;
  margin: 0 0 24px;
  color: var(--charcoal);
}
.hero h1 em { font-style: normal; font-weight: 300; }
.hero p.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 56ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.pillars {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 0;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
}
.pillars li:not(:last-child)::after { content: "·"; margin: 0 10px; }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 640px; }
.section-head .eyebrow { margin: 0; }
h2 {
  font-stretch: 112%;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 700;
  margin: 0; color: var(--charcoal);
}
.section-head p { margin: 0; color: var(--ink-soft); }

/* Services: ruled two-column list, not cards */
.services { border-top: 1px solid var(--rule); }
.service-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
}
.service {
  padding: 28px 32px 36px 0;
  border-bottom: 1px solid var(--rule);
}
.service:nth-child(even) { padding: 28px 0 36px 32px; border-left: 1px solid var(--rule); }
.service .num { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.service h3 {
  font-stretch: 112%; font-size: 1.35rem; line-height: 1.2;
  margin: 10px 0 10px; color: var(--charcoal);
}
.service p { margin: 0; max-width: 46ch; }
@media (max-width: 760px) {
  .service-list { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 24px 0 28px; border-left: 0; }
}

/* How it works: dark band */
.process { background: var(--charcoal); color: var(--on-dark); }
.process h2 { color: var(--on-dark); }
.process .eyebrow, .process .section-head p { color: var(--on-dark-soft); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--charcoal-line);
}
.steps li { padding: 28px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--charcoal-line); }
.steps .step-num {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--on-dark-soft); font-variant-numeric: tabular-nums; margin-bottom: 14px;
}
.steps h3 {
  font-stretch: 125%; font-size: 1.5rem; font-weight: 700;
  margin: 0 0 10px; letter-spacing: -0.01em;
}
.steps p { margin: 0; color: var(--on-dark-soft); font-size: 1rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--charcoal-line); margin-top: 20px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--charcoal-line); margin-top: 16px; }
}

/* About */
.about-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.about-grid .pull {
  font-stretch: 112%;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.2;
  font-weight: 300; letter-spacing: -0.015em; color: var(--charcoal); margin: 0;
}
.about-grid .pull b { font-weight: 700; }
.about-body p { margin: 0 0 18px; max-width: 60ch; }
.about-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--cream-deep); border-top: 1px solid var(--rule); }
.contact-grid {
  display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 80px);
}
.contact-aside p { margin: 0 0 20px; }
.contact-aside .direct { font-size: 0.95rem; color: var(--ink-soft); }
.contact-aside .direct a { color: var(--ink); font-weight: 600; word-break: break-all; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--charcoal); }
.field label .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font);
  color: var(--charcoal);
  background: #fffdfb;
  border: 1px solid #b9ada0;
  border-radius: 4px;
  padding: 12px 14px;
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--charcoal); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a32d1f; }
.field .error { color: #a32d1f; font-size: 0.9rem; min-height: 0; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); margin: 0; max-width: 48ch; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 500; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--on-dark-soft); padding: 40px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer .wordmark { color: var(--on-dark); font-size: 1.25rem; }
.site-footer ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* Legal page */
.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal .wrap { max-width: 780px; }
.legal h1 {
  font-stretch: 112%; font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; color: var(--charcoal);
}
.legal .meta { color: var(--ink-soft); margin: 0 0 40px; }
.legal h2 { font-size: 1.35rem; margin: 44px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; color: var(--charcoal); }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal .callout {
  border-left: 3px solid var(--charcoal); background: var(--cream-deep);
  padding: 16px 20px; margin: 16px 0;
}
.legal .callout p { margin: 0 0 10px; }
.legal .callout p:last-child { margin: 0; }
