/* Two Rivers IT Consulting — shared styles */

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

:root {
  --paper: #F3F5F8;
  --paper-raised: #FFFFFF;
  --ink: #0B2A52;
  --ink-soft: #45566B;
  --river-deep: #0B2A52;
  --river-deep-hover: #082038;
  --slate: #2C5C8C;
  --brass: #1B72C4;
  --line: #D7DEE6;
  --line-soft: #E4E9EF;

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* ---------- Nav ---------- */

header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.brand-tagline {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  padding-left: 16px;
  border-left: 1px solid var(--line);
  line-height: 1.4;
  max-width: 90px;
}

.footer-logo {
  height: 30px;
  width: auto;
  display: block;
}

nav.primary-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

nav.primary-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.primary-nav a:hover,
nav.primary-nav a.active {
  color: var(--river-deep);
  border-color: var(--brass);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--river-deep);
  color: #FFFFFF !important;
  padding: 10px 18px;
  border-radius: 3px;
  border-bottom: none !important;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--river-deep-hover);
  color: var(--paper-raised) !important;
}

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px 0;
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 32px 104px;
  position: relative;
  z-index: 2;
}

.hero-graphic {
  position: absolute;
  top: 0;
  right: -6%;
  height: 100%;
  width: 62%;
  z-index: 1;
  opacity: 0.9;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.16;
  max-width: 640px;
  margin: 0 0 26px 0;
  letter-spacing: -0.01em;
}

.hero p.lede {
  max-width: 560px;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 34px 0;
}

.button-row {
  display: flex;
  gap: 18px;
  align-items: center;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--river-deep);
  color: var(--paper-raised);
}

.btn-primary:hover {
  background: var(--river-deep-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--brass);
  color: var(--brass);
}

/* ---------- Sections ---------- */

section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 22px 0;
  max-width: 620px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.prose p {
  color: var(--ink-soft);
  margin: 0 0 18px 0;
  max-width: 60ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Stats ---------- */

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.stat {
  display: block;
}

.stat .num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  color: var(--river-deep);
  line-height: 1;
  margin-bottom: 6px;
}

.stat .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Services: converging columns ---------- */

.services-shell {
  position: relative;
}

.confluence-divider {
  display: block;
  margin: 0 auto 56px;
  width: 100%;
  max-width: 340px;
  height: 46px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-raised);
}

.service-col {
  padding: 40px 40px 44px;
}

.service-col + .service-col {
  border-left: 1px solid var(--line);
}

.service-col .eyebrow {
  margin-bottom: 14px;
}

.service-col h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 16px 0;
}

.service-col p {
  color: var(--ink-soft);
  margin: 0 0 14px 0;
}

.service-col ul {
  margin: 18px 0 0 0;
  padding: 0;
  list-style: none;
}

.service-col li {
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--ink-soft);
}

.service-col li:first-child {
  border-top: none;
}

/* ---------- Service area ---------- */

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.area-pill {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper-raised);
}

.area-pill.hq {
  border-color: var(--brass);
  color: var(--brass);
}

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

.cta-band {
  background: var(--river-deep);
  color: var(--paper-raised);
  border-bottom: none;
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--paper-raised);
  margin: 0;
  max-width: 480px;
}

.cta-band .eyebrow {
  color: #8FC0EE;
}

.cta-band .btn-primary {
  background: var(--brass);
  color: #FFFFFF;
}

.cta-band .btn-primary:hover {
  background: #145A99;
}

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

.contact-hero {
  padding: 88px 0 64px;
}

.contact-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  max-width: 560px;
  margin: 0 0 20px 0;
}

.contact-hero p.lede {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 520px;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
}

.contact-card .eyebrow {
  margin-bottom: 12px;
}

.contact-card .value {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.contact-card a.value {
  text-decoration: none;
  color: var(--river-deep);
}

.contact-card a.value:hover {
  color: var(--brass);
}

.contact-card .sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

.contact-note {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 60ch;
  color: var(--ink-soft);
}

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

.form-shell {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 44px;
  margin-top: 56px;
}

.form-shell h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.form-shell > p {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 32px 0;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}

.form-actions button {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--river-deep);
  color: var(--paper-raised);
  border: none;
  padding: 14px 28px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.form-actions button:hover {
  background: var(--river-deep-hover);
}

.form-status {
  font-size: 14px;
  color: var(--ink-soft);
}

.form-status.success { color: var(--river-deep); }
.form-status.error { color: #9C3B3B; }

@media (max-width: 700px) {
  .contact-form { grid-template-columns: 1fr; }
  .form-shell { padding: 28px; }
}

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

footer.site-footer {
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner .brand-text {
  font-size: 15px;
}

.footer-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

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

@media (max-width: 860px) {
  .hero-graphic { width: 90%; right: -20%; opacity: 0.5; }
  .hero h1 { font-size: 34px; }
  .section-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-block { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; flex-direction: row; flex-wrap: wrap; }
  .services-grid { grid-template-columns: 1fr; }
  .service-col + .service-col { border-left: none; border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  nav.primary-nav { gap: 20px; }
}

@media (max-width: 560px) {
  .nav-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero-inner { padding: 56px 24px 72px; }
  .hero h1 { font-size: 28px; }
  .brand-tagline { display: none; }
  .brand-logo { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
