/* ============================================================
   Two Rivers Employment & Consulting — tworiversgj.com
   Palette: Grand Junction canyon + confluence
   ============================================================ */

:root {
  --paper: #FBF7F0;      /* warm cream background */
  --sand: #F2EADB;       /* light sandstone band */
  --ink: #2A241D;        /* near-black warm brown */
  --muted: #5C534A;      /* secondary text */
  --rust: #A3401F;       /* canyon red — primary accent */
  --rust-dark: #7F3013;  /* hover / emphasis */
  --river: #1E566B;      /* deep river teal */
  --river-light: #3E7D91;
  --gold: #C98A2B;       /* high-desert gold, decorative only */
  --gold-on-dark: #EFC26E; /* gold usable as text on --river (4.85:1) */
  --river-hover: #39758A;  /* hover teal, keeps 4.5:1+ with paper text */
  --line: #E4D9C6;       /* hairline borders */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 2px 6px rgba(42, 36, 29, 0.06), 0 14px 34px rgba(42, 36, 29, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 1em; }
a { color: var(--rust); }

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

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--river-light);
  outline-offset: 2px;
  border-radius: 3px;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9rem;
}

.about .eyebrow-light { color: var(--gold-on-dark); }

.section-lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
}

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--rust);
  color: #fff;
}
.btn-primary:hover { background: var(--rust-dark); }

.btn-ghost {
  color: var(--river);
  border: 1.5px solid var(--river);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--river);
  color: var(--paper);
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1rem 2.2rem;
  max-width: 100%;
}

@media (max-width: 400px) {
  .btn-lg {
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
  }
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.nav-menu a:hover { color: var(--rust); }

.nav-cta {
  background: var(--river);
  color: var(--paper) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--river-hover); }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-bar { top: calc(50% - 1px); }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

/* ============ Hero ============ */

.hero {
  padding-block: clamp(4rem, 10vw, 7.5rem) 0;
  overflow: hidden;
}

.hero-inner {
  max-width: 46rem;
  text-align: left;
}

.lede {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.rivers {
  display: block;
  width: 100%;
  height: clamp(110px, 18vw, 220px);
  margin-top: clamp(2rem, 6vw, 4rem);
}

/* ============ Services ============ */

.services {
  background: var(--sand);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: 2.75rem;
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow);
}

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

.card h3 { margin-bottom: 0.5rem; }

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(30, 86, 107, 0.1);
  color: var(--river);
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ============ About ============ */

.about {
  background: var(--river);
  color: var(--paper);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.about h2, .about h3 { color: #fff; }

.about p { color: rgba(251, 247, 240, 0.88); }

.about-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-copy p { font-size: 1.075rem; }

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.about-points li {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
}

.about-points h3 { margin-bottom: 0.3rem; }

.about-points p {
  margin: 0;
  font-size: 0.975rem;
  color: rgba(251, 247, 240, 0.82);
}

/* ============ Leadership ============ */

.leader {
  padding-block: clamp(4rem, 8vw, 6.5rem) 0;
}

.leader-inner {
  display: grid;
  grid-template-columns: minmax(0, 21rem) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.leader-photo-wrap {
  position: relative;
}

.leader-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--sand);
  border: 2px solid var(--gold);
  z-index: 0;
}

.leader-photo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  z-index: 1;
}

.leader-creds {
  font-weight: 600;
  color: var(--river);
  font-size: 0.975rem;
  margin-bottom: 1.25rem;
}

.leader-copy p:not(.eyebrow):not(.leader-creds) {
  color: var(--muted);
  max-width: 38rem;
}

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

  .leader-photo-wrap {
    max-width: 20rem;
    margin-inline: auto;
  }
}

/* ============ Contact ============ */

.contact {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.contact-card {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  box-shadow: var(--shadow);
}

.contact-card .section-lede { margin-inline: auto; }

.contact-note {
  margin: 1.75rem 0 0;
  font-size: 0.925rem;
  color: var(--muted);
}

/* ============ Contact form ============ */

.contact-form {
  max-width: 34rem;
  margin: 2rem auto 0;
  text-align: left;
  display: grid;
  gap: 1.15rem;
}

.form-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-field .optional {
  font-weight: 400;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #8F836F;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  width: 100%;
}

.form-field textarea { resize: vertical; }

.contact-form button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0.25rem;
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: default;
}

.form-status {
  margin: 0;
  min-height: 1.5em;
  font-weight: 600;
  color: var(--river);
}

.form-status.error { color: var(--rust-dark); }

.gotcha { display: none; }

/* ============ Footer ============ */

.site-footer {
  background: var(--ink);
  color: rgba(251, 247, 240, 0.85);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.6rem;
}

.footer-inner p { margin: 0; }

.site-footer a {
  color: rgba(251, 247, 240, 0.85);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover { color: #fff; }

.footer-disclaimer {
  margin: 0;
  padding-bottom: 1.5rem;
  font-size: 0.8rem;
  color: rgba(251, 247, 240, 0.65);
}

/* ============ Reveal animation (progressive enhancement) ============ */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive ============ */

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

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

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 0 1rem;
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    display: block;
    padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
    font-size: 1.05rem;
  }

  .nav-cta {
    margin: 0.6rem clamp(1.25rem, 4vw, 2.5rem) 0;
    text-align: center;
  }

  .header-inner { position: relative; }

  .brand-name { font-size: 1.05rem; }
}

@media (max-width: 379px) {
  .brand-sub { display: none; }
}

/* ============ Print ============ */

@media print {
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header { position: static; }
  .rivers { display: none; }

  .about, .site-footer { background: none; }

  .about h2, .about h3,
  .about p, .about-points p,
  .site-footer, .site-footer a,
  .footer-disclaimer {
    color: var(--ink);
  }
}
