/* ---------------------------------------------------
   River International — shared stylesheet
   --------------------------------------------------- */

:root {
  --ink: #14304a;
  --slate: #2c5576;
  --parchment: #f5f3ef;
  --parchment-dim: #ebe8e1;
  --accent: #7398ae;
  --accent-dark: #4a7595;
  --grey: #5c6773;
  --line: #dcd7cd;
  --max-width: 1120px;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
  color: var(--grey);
  max-width: 62ch;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--parchment);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

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

.brand img {
  height: 28px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-text span {
  color: var(--slate);
  font-weight: 500;
}

.footer-brand img {
  height: 80px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span { top: 18px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent-dark);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .main-nav li {
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0.1rem;
  }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--parchment);
}

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

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

.btn-secondary:hover {
  background: var(--ink);
  color: var(--parchment);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

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

.hero {
  padding: 5.5rem 0 4rem;
}

.hero .eyebrow {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.hero h1 {
  max-width: 16ch;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 52ch;
  margin-top: 1.1rem;
}

.current-line {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 2.75rem 0 0;
  display: block;
}

.current-line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

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

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--parchment-dim);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin-bottom: 0.6rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------------- Teaser / feature grid ---------------- */

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
}

.feature {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
}

.feature h3 {
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.97rem;
  margin-bottom: 0.75rem;
}

.feature a {
  font-size: 0.92rem;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dark);
}

/* ---------------- Values list (About) ---------------- */

.values {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 620px) {
  .values { grid-template-columns: 1fr; }
}

.value h3 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
}

/* ---------------- Process steps (About) ---------------- */

.steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.95rem;
}

/* ---------------- Services page ---------------- */

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.service-item:last-child {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 720px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.service-item h3 {
  color: var(--slate);
}

.service-item ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--grey);
  font-size: 0.96rem;
}

.service-item li {
  margin-bottom: 0.4rem;
}

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

.cta-banner {
  background: var(--ink);
  color: var(--parchment);
  padding: 3.5rem 0;
}

.cta-banner h2 {
  color: var(--parchment);
}

.cta-banner p {
  color: #c7cfda;
}

.cta-banner .btn-secondary {
  color: var(--parchment);
  border-color: var(--parchment);
}

.cta-banner .btn-secondary:hover {
  background: var(--parchment);
  color: var(--ink);
}

.cta-banner .btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.cta-banner .btn-primary:hover {
  background: #bd9a63;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.field {
  margin-bottom: 1.3rem;
}

.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-info h3 {
  margin-bottom: 0.3rem;
}

.contact-info .info-block {
  margin-bottom: 1.6rem;
}

.contact-info p {
  font-size: 0.97rem;
  margin-bottom: 0.2rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: -0.4rem;
}

.form-success {
  border-left: 2px solid var(--slate);
  padding-left: 1.1rem;
  display: none;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--grey);
}

.footer-nav a:hover {
  color: var(--accent-dark);
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 1.75rem;
}
