/* Keystone Property Systems — stylesheet */

:root {
  --slate: #232b34;
  --slate-deep: #171d24;
  --teal: #2f8f8a;
  --teal-light: #e4f2f1;
  --paper: #f7f8f9;
  --text: #232b34;
  --text-muted: #616b74;
  --heading-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--heading-font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 600; margin-top: 0; }

/* Top bar */
.topbar {
  background: var(--slate);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--teal);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.logo-mark {
  font-family: var(--mono);
  background: var(--teal);
  color: var(--slate-deep);
  padding: 4px 7px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 3px;
}

.toplinks a {
  margin-left: 30px;
  font-size: 0.9rem;
  color: #c8d0d6;
}

.toplinks a:hover { color: #fff; }

/* Hero */
.hero {
  background: var(--slate-deep);
  color: #fff;
  padding: 90px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
}

.tag {
  font-family: var(--mono);
  color: var(--teal);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.3rem;
  line-height: 1.25;
  margin-bottom: 20px;
  max-width: 560px;
}

.hero-copy {
  color: #aeb9c1;
  max-width: 500px;
  font-size: 1rem;
}

.hero-panel {
  height: 220px;
  background: #1e252d;
  border: 1px solid #313b45;
  border-radius: 6px;
  position: relative;
}

.node-diagram { position: relative; width: 100%; height: 100%; }

.node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
}

.n1 { top: 30px; left: 40px; }
.n2 { top: 30px; right: 40px; }
.n3 { bottom: 30px; left: 90px; }
.n4 { bottom: 30px; right: 90px; }

.line {
  position: absolute;
  background: #3a4650;
  height: 1px;
}

.l1 { top: 37px; left: 54px; width: calc(100% - 108px); }
.l2 { top: 37px; bottom: 37px; left: 47px; width: 1px; height: calc(100% - 74px); }
.l3 { top: 37px; bottom: 37px; right: 47px; width: 1px; height: calc(100% - 74px); }

/* About */
.about { padding: 76px 0; }

.about h2 { font-size: 1.6rem; margin-bottom: 22px; }

.about p {
  max-width: 700px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Services */
.services {
  background: var(--teal-light);
  padding: 76px 0;
}

.services h2 { font-size: 1.6rem; margin-bottom: 30px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  padding: 24px 22px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(23,29,36,0.06);
}

.card-index {
  font-family: var(--mono);
  color: var(--teal);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Contact */
.contact { padding: 76px 0; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact h2 { font-size: 1.6rem; }

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ck-label {
  font-family: var(--mono);
  color: var(--teal);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.contact-details p + p { color: var(--text-muted); margin: 0; }

.site-footer {
  background: var(--slate-deep);
  color: #93a0aa;
  padding: 24px 0;
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { height: 160px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
  .toplinks a { margin-left: 16px; }
}
