/* Minerva Software Technologies — minervasoft.org */

:root {
  --bg: #fbfaf7;
  --ink: #182236;
  --muted: #5a6270;
  --line: #e3e0d7;
  --accent: #9a6b1f;
  --navy-btn: #1d2b47;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

.wrap { width: min(1080px, 91%); margin: 0 auto; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding: 1.1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand .owl { width: 34px; height: 34px; flex: none; }

.brand .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.15;
}

.brand .wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); }

.site-nav .nav-btn {
  border: 1.5px solid var(--navy-btn);
  border-radius: 7px;
  padding: 0.45rem 1.05rem;
  color: var(--ink);
}

.site-nav .nav-btn:hover { background: var(--navy-btn); color: #fff; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--navy-btn);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover { background: #0f1728; }

.arrow-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.15s, color 0.15s;
}

.arrow-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Section scaffolding ---------- */

.section { padding: 4.8rem 0; }

.overline {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.section .section-intro { color: var(--muted); max-width: 40em; }

/* ---------- Hero ---------- */

.hero { padding: 5.5rem 0 5rem; border-bottom: 1px solid var(--line); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 15em;
  margin-bottom: 1.4rem;
}

.hero .lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 2.2rem;
}

.hero .actions { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }

/* ---------- Services grid ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem 3.5rem;
  margin-top: 2.8rem;
}

.svc {
  border-top: 2px solid var(--ink);
  padding-top: 1.3rem;
}

.svc h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.svc p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.8rem; }

.svc .tags {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.svc .tags span { color: var(--line); padding: 0 0.4rem; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.8rem;
}

.step .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.45rem; }

.step p { color: var(--muted); font-size: 0.96rem; }

/* ---------- About band ---------- */

.about-band { background: #f3f1ea; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.about-band .inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.4rem 0;
}

.about-band .owl-lg { width: 84px; height: 84px; color: var(--ink); }

.about-band p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
  max-width: 34em;
  margin-bottom: 0.9rem;
}

/* ---------- CTA ---------- */

.cta { text-align: center; padding: 5.5rem 0; }

.cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 0.9rem;
}

.cta p { color: var(--muted); max-width: 36em; margin: 0 auto 2rem; }

.cta p a { font-weight: 600; color: var(--ink); }
.cta p a:hover { color: var(--accent); }

/* ---------- Inner page hero ---------- */

.page-hero { padding: 4.2rem 0 3.6rem; border-bottom: 1px solid var(--line); }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
}

.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 38em; }

/* ---------- Service detail ---------- */

.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--line);
}

.svc-detail:last-of-type { border-bottom: 0; }

.svc-detail h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin-bottom: 0.9rem;
}

.svc-detail .body p { margin-bottom: 1rem; }
.svc-detail .body p:last-child { margin-bottom: 0; }

.svc-detail aside h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.svc-detail aside ul { list-style: none; }

.svc-detail aside li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}

.svc-detail aside li:last-child { border-bottom: 0; }

/* ---------- About page ---------- */

.prose { max-width: 44em; }
.prose p { margin-bottom: 1.25rem; }
.prose p:first-of-type { font-size: 1.15rem; }

.beliefs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-top: 2.6rem;
}

.belief { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.belief h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.4rem; }
.belief p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Contact ---------- */

.contact-cols {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  padding: 3.8rem 0 5rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.8rem 0 0.3rem;
}

.contact-info h3:first-child { margin-top: 0; }

.contact-info p { font-size: 1.05rem; }

.contact-info a { text-decoration: none; font-weight: 600; }
.contact-info a:hover { color: var(--accent); }

.contact-info .note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 1.3rem 0 0.35rem;
}

.contact-form label:first-child { margin-top: 0; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfcabd;
  border-radius: 7px;
  padding: 0.65rem 0.8rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--navy-btn);
  outline-offset: -1px;
  border-color: var(--navy-btn);
}

.contact-form textarea { resize: vertical; }

.contact-form .btn { margin-top: 1.6rem; }

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

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  background: #f3f1ea;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2.5rem;
}

.site-footer .brand { margin-bottom: 0.9rem; }

.site-footer .blurb { color: var(--muted); font-size: 0.95rem; max-width: 24em; }

.site-footer h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.45rem; }

.site-footer a { text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--accent); }

.footer-legal { border-top: 1px solid var(--line); padding: 1.2rem 0; }

.footer-legal .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .svc-grid, .beliefs, .svc-detail, .contact-cols { grid-template-columns: 1fr; }
  .svc-detail { gap: 1.8rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .about-band .inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 3.8rem 0 4rem; }
}
