/* ==========================================================================
   Morris Transportation Foundation — shared stylesheet
   Palette: pine green + amber on warm cream. Fraunces (display),
   Work Sans (body), IBM Plex Mono (eyebrows / labels).
   ========================================================================== */

:root {
  --pine: #1E4D3A;
  --pine-deep: #16382B;
  --moss: #2E6B52;
  --amber: #E5A13C;
  --cream: #FBF7EE;
  --ink: #23312B;
  --muted: #5F7268;
  --line: #D9D2C2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--amber);
}

h2.title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 38px;
  line-height: 1.12;
  color: var(--pine-deep);
  margin: 10px 0 18px;
}
h2.title .rule {
  display: inline-block;
  width: 46px;
  height: 4px;
  background: var(--amber);
  vertical-align: middle;
  margin-right: 14px;
}

.lede { max-width: 44em; font-size: 16px; }

/* Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--amber);
  color: var(--pine-deep);
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; text-decoration: none; }

/* ---- Nav --------------------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 77, 58, .97);
  backdrop-filter: blur(8px);
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--cream);
  white-space: nowrap;
}
.brand em { font-style: italic; font-weight: 500; color: var(--amber); }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.nav-links a { color: #DCECDF; font-size: 13.5px; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1.5px solid rgba(229, 161, 60, .6);
  border-radius: 2px;
  color: var(--amber);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(229, 161, 60, .12); }

.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--pine-deep);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1.5px solid var(--amber);
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: #EFB258; border-color: #EFB258; text-decoration: none; }
.btn.ghost { background: transparent; border: 1.5px solid var(--amber); color: var(--amber); }
.btn.ghost:hover { background: rgba(229, 161, 60, .12); }
.btn.pine { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.btn.pine:hover { background: var(--moss); border-color: var(--moss); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---- Hero -------------------------------------------------------------- */
.hero { background: var(--pine); color: var(--cream); padding: 96px 0 0; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 54px;
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--amber); }
.hero p.sub {
  font-size: 17.5px;
  line-height: 1.6;
  color: #DCE9DF;
  max-width: 30em;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-route { padding: 40px 0 0; }
.hero-stops {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #B8CFC2;
  padding: 8px 0 26px;
}
.hero-stops .dot2 {
  background: var(--amber);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin: 0 14px;
}

/* ---- Services ---------------------------------------------------------- */
.services { background: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card {
  border: 1px solid var(--line);
  border-top: 5px solid var(--pine);
  background: var(--cream);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22, 56, 43, .1); }
.card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--pine);
  margin-bottom: 10px;
}
.card p { font-size: 14.5px; color: #3E4F46; }
.card .ic { margin-bottom: 14px; }

/* ---- Need -------------------------------------------------------------- */
.need { background: var(--pine-deep); color: #DCE9DF; }
.need .title { color: var(--cream); }
.need-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.need-col h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.need-col p { font-size: 14.5px; line-height: 1.6; }
.need-quote {
  margin-top: 52px;
  border-left: 4px solid var(--amber);
  padding: 8px 0 8px 26px;
  max-width: 42em;
}
.need-quote p {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 25px;
  line-height: 1.35;
  color: var(--cream);
}

/* ---- How it works ------------------------------------------------------ */
.how .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  counter-reset: st;
}
.how .step {
  border-top: 2px solid var(--line);
  padding-top: 18px;
  counter-increment: st;
  position: relative;
}
.how .step::before {
  content: "0" counter(st);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--amber);
  letter-spacing: .1em;
}
.how .step h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--pine);
  margin: 8px 0 8px;
}
.how .step p { font-size: 14.5px; }

/* ---- Who we serve ------------------------------------------------------ */
.serve { background: #fff; }
.serve-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 36px; }
.serve-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.serve-item .dot2 {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 8px;
}
.serve-item h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--pine);
  margin-bottom: 2px;
}
.serve-item p { font-size: 14px; color: #3E4F46; }

/* ---- Give -------------------------------------------------------------- */
.give { background: var(--pine); color: var(--cream); }
.give .title { color: var(--cream); }
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.give-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.give-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
}
.give-card h3 span { color: var(--amber); }
.give-card p { font-size: 14px; color: #C7D8CD; margin-bottom: 14px; }
.give-card a { color: var(--amber); font-weight: 600; }
.give-card .give-action { margin-top: auto; }
.give-card .btn { align-self: flex-start; }

/* "Coming soon" note inside a dark card */
.note-soon {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #A8C2B2;
  margin-top: 12px;
  line-height: 1.5;
}

/* ---- Contact ----------------------------------------------------------- */
.contact-box {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--pine);
  padding: 44px;
  margin-top: 40px;
}
.contact-box h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--pine);
  margin-bottom: 12px;
}
.contact-line { font-size: 15px; margin-bottom: 8px; }
.contact-line b {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}

/* Placeholder pill for details the Foundation has not published yet */
.soon {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: #F2EEE2;
  color: #7A6A47;
  border: 1px dashed var(--line);
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: 1px;
}

/* ---- Footer ------------------------------------------------------------ */
footer { background: var(--pine-deep); color: #9FBBAB; padding: 44px 0 40px; }
.foot-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  flex-wrap: wrap;
}
.foot-inner .brand { color: var(--cream); }
footer p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-left: auto;
}
footer .stopline { max-width: 1080px; margin: 22px auto 0; padding: 0 28px; }
footer a { color: #C7D8CD; }
.foot-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.foot-nav a:hover { color: #fff; }

/* ==========================================================================
   Form pages
   ========================================================================== */

.page-head { background: var(--pine); color: var(--cream); padding: 64px 0 56px; }
.page-head .eyebrow { margin-bottom: 12px; display: block; }
.page-head h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 24em;
}
.page-head h1 em { font-style: italic; font-weight: 500; color: var(--amber); }
.page-head p { color: #DCE9DF; max-width: 40em; font-size: 17px; }

.crumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #A8C2B2;
  margin-bottom: 22px;
}
.crumb a { color: #A8C2B2; }
.crumb a:hover { color: #fff; }

.form-layout {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--pine);
  padding: 40px;
}

.aside {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 26px;
  position: sticky;
  top: 92px;
}
.aside h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--pine);
  margin-bottom: 10px;
}
.aside p, .aside li { font-size: 14px; color: #3E4F46; }
.aside ul { list-style: none; margin-top: 10px; }
.aside li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 9px;
  line-height: 1.5;
}
.aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.aside .divider { height: 1px; background: var(--line); margin: 22px 0; }

/* Fieldsets and fields --------------------------------------------------- */
.fs { border: 0; margin-bottom: 34px; }
.fs:last-of-type { margin-bottom: 26px; }
.fs > legend {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 0;
  margin-bottom: 6px;
}
.fs > .fs-hint {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 42em;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label,
.field > .label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--pine-deep);
  margin-bottom: 6px;
}
.field .req { color: #A8422C; font-weight: 500; }
.field .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .02em;
}
.field .hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 118px; resize: vertical; line-height: 1.55; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235F7268' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}
input:hover, select:hover, textarea:hover { border-color: #BEB49C; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(46, 107, 82, .16);
  background: #fff;
}
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) { border-color: #C0714F; }

/* Checkbox / radio groups */
.choices { display: grid; gap: 10px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 13px 15px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  font-size: 14.5px;
}
.choice:hover { border-color: var(--moss); background: #fff; }
.choice input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--moss); flex: 0 0 auto; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--moss); background: #fff; box-shadow: inset 0 0 0 1px var(--moss); }
.choice span strong { display: block; font-weight: 600; color: var(--pine-deep); }
.choice span em { font-style: normal; font-size: 13px; color: var(--muted); }

/* Honeypot — hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; opacity: 0; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.form-actions .privacy { font-size: 13px; color: var(--muted); max-width: 26em; }

/* Status messages -------------------------------------------------------- */
.form-status { display: none; margin-bottom: 24px; padding: 16px 18px; border-radius: 2px; font-size: 14.5px; }
.form-status.is-error {
  display: block;
  background: #FBEDE7;
  border: 1px solid #E0B7A5;
  color: #8C3B22;
}

.success-panel { display: none; }
.success-panel.is-visible { display: block; }
.success-panel .mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(46, 107, 82, .1);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.success-panel h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 27px;
  color: var(--pine-deep);
  margin-bottom: 12px;
}
.success-panel p { font-size: 15.5px; max-width: 38em; margin-bottom: 14px; }
.success-panel .next {
  border-left: 4px solid var(--amber);
  padding: 4px 0 4px 20px;
  margin: 22px 0 26px;
  font-size: 14.5px;
  color: #3E4F46;
}
.is-submitted .form-body { display: none; }

/* Thanks page ------------------------------------------------------------ */
.thanks-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--pine);
  padding: 52px 48px;
  max-width: 660px;
}

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

@media (max-width: 980px) {
  .form-layout { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .cards, .need-grid, .how .steps, .give-grid { grid-template-columns: 1fr; }
  .serve-grid, .contact-box { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  h2.title { font-size: 30px; }
  .page-head h1 { font-size: 32px; }
  .contact-box { padding: 30px 24px; }
  .form-card { padding: 28px 22px; }
  .grid-2, .choices.cols-2 { grid-template-columns: 1fr; }

  /* Collapsible nav */
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--pine-deep);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 8px 20px 20px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 15px;
  }
  .nav-links .btn { margin-top: 16px; border-bottom: 0; }
  nav { position: sticky; }
  .nav-inner { position: relative; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  footer p, .foot-nav { margin-left: 0; }
  .foot-nav { flex-wrap: wrap; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

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