@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --paper: #EFEBE0;
  --ink: #1F3A3D;
  --peat: #4A3728;
  --gold: #AD8A3E;
  --sage: #6E8B85;
  --line: rgba(31, 58, 61, 0.18);
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  margin: 0 0 0.4em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { max-width: 62ch; }

a { color: var(--ink); }

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

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.logo {
  font-family: 'Source Serif 4', serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo span {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--sage);
  letter-spacing: 0.04em;
}
nav.main a {
  text-decoration: none;
  color: var(--peat);
  margin-left: 30px;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.main a:hover, nav.main a.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero .lede { color: var(--peat); font-size: 1.08rem; margin-top: 18px; }
.hero .credential-line {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--sage);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.hero .credential-line strong { color: var(--ink); font-weight: 600; }

.hero-map {
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 26px;
  margin-right: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--peat); border-color: var(--peat); }

/* Sections */
section { padding: 56px 0; }
.section-rule { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
}
.section-head .tag {
  color: var(--sage);
  font-size: 0.85rem;
  margin: 0;
}

/* Services legend list */
.legend-list { border-top: 1px solid var(--line); }
.legend-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.legend-item .mark {
  color: var(--gold);
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  padding-top: 2px;
}
.legend-item h3 { margin-bottom: 6px; }
.legend-item p { margin: 0; color: var(--peat); font-size: 0.97rem; }

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}
.step .num {
  font-family: 'Source Serif 4', serif;
  color: var(--gold);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 6px;
}
.step p { font-size: 0.92rem; color: var(--peat); margin: 6px 0 0; }

/* Two-col generic */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Cards-free info blocks */
.info-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: none; }
.info-block h3 { margin-bottom: 8px; }
.info-block p { color: var(--peat); margin: 0; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--sage);
}
footer.site a { color: var(--peat); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

/* Contact page specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-detail { margin-bottom: 22px; }
.contact-detail .label {
  font-size: 0.8rem;
  color: var(--sage);
  margin-bottom: 4px;
}
.contact-detail .value { font-size: 1.1rem; }
.contact-detail .value a { text-decoration: none; border-bottom: 1px solid var(--gold); }

.about-portrait-frame {
  border: 1px solid var(--line);
  padding: 24px;
  background: rgba(110, 139, 133, 0.06);
}

@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-map { max-width: 320px; margin: 0 auto; }
  .process { grid-template-columns: 1fr 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  nav.main a { margin-left: 18px; font-size: 0.88rem; }
  .legend-item { grid-template-columns: 60px 1fr; }
}
