/* ====== ShropshireAI — shared styles ====== */
:root {
  --teal:        #0d6c63;
  --teal-deep:   #1a5050;
  --teal-card:   #1d4a47;
  --lime:        #cef078;
  --coral:       #f08658;
  --ink:         #131613;
  --ink-soft:    #2a2b2a;
  --body:        #5e6470;
  --rule:        #e4e8ec;
  --bg:          #ffffff;
  --bg-soft:     #f5f8f9;
  --bg-cream:    #fbf6eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ====== Layout ====== */
.wrap        { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 980px;  margin: 0 auto; padding: 0 40px; }

/* ====== Nav ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  max-width: 1400px; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--ink);
}
.nav-logo .squiggle { width: 38px; height: 16px; }
.nav-logo .squiggle path { stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-logo .ai { color: var(--teal); font-weight: 800; }
.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--teal); border-radius: 2px;
}
.nav-cta {
  background: var(--lime); color: var(--ink);
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ====== Page header (used on inner pages) ====== */
.page-head {
  padding: 80px 0 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.page-head .crumb {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 22px;
}
.page-head h1 {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02; letter-spacing: -0.02em;
  color: var(--ink); max-width: 18ch;
  margin-bottom: 24px;
}
.page-head .lede {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45; color: var(--ink-soft);
  font-weight: 500; max-width: 60ch;
}

/* ====== Hero (home) ====== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: space-between;
  color: white; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('images/shropshire-hills.jpg');
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 80px 0 60px;
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.hero-top { padding-top: 40px; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02; letter-spacing: -0.02em;
  max-width: 12ch; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-lime {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--ink);
  padding: 16px 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px;
  transition: transform 0.15s ease;
}
.btn-lime:hover { transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); color: #fff;
  padding: 16px 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.btn-lime svg, .btn-ghost svg { width: 18px; height: 18px; }
.hero-stats {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  padding: 30px 0 50px; color: #fff;
}
.hero-tag {
  max-width: 360px;
  font-size: 18px; line-height: 1.4; font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.stats { display: flex; gap: 56px; }
.stat .n {
  font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.stat .l { font-size: 13px; font-weight: 500; opacity: 0.92; margin-top: 8px; }

/* ====== Generic typography ====== */
section { padding: 90px 0; }
section.soft  { background: var(--bg-soft); }
section.cream { background: var(--bg-cream); }
section.dark  { background: var(--ink-soft); color: #ededed; }
section.dark .eyebrow { color: var(--lime); }
section.dark h2 { color: #fff; }
section.dark p  { color: #c8c8c8; }

.eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 22px;
}
h2 {
  font-weight: 800; font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.03; letter-spacing: -0.02em;
  color: var(--ink); max-width: 18ch;
}
h2.narrow { max-width: 14ch; }
h3 {
  font-weight: 700; font-size: 26px;
  line-height: 1.18; letter-spacing: -0.01em;
  color: var(--ink);
}
h4 {
  font-weight: 700; font-size: 18px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink);
}
p {
  color: var(--body); font-size: 17px; line-height: 1.65;
  margin-bottom: 1.05em;
}
p:last-child { margin-bottom: 0; }
p.lede { font-size: 22px; line-height: 1.5; color: var(--ink-soft); font-weight: 500; }
strong { color: var(--ink); font-weight: 700; }
.pull {
  font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); margin: 40px 0; max-width: 22ch;
}

/* ====== Cards / grids ====== */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 50px;
}
.adv-card {
  border-radius: 10px; padding: 36px 32px 40px;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.adv-card .num {
  font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
}
.adv-card .title { font-size: 20px; line-height: 1.25; font-weight: 700; margin-top: 18px; }
.adv-card .body  { font-size: 15px; line-height: 1.55; margin-top: 14px; font-weight: 500; }
.c-teal  { background: var(--teal-card); color: #fff; }
.c-lime  { background: var(--lime);      color: var(--ink); }
.c-coral { background: var(--coral);     color: var(--ink); }
.c-ink   { background: var(--ink-soft);  color: #fff; }

/* ====== Focus row (alternating image/text) ====== */
.focus-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--rule);
}
.focus-row:last-child { border-bottom: none; }
.focus-row .focus-text .eyebrow { margin-bottom: 16px; }
.focus-row .focus-text h3 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.focus-row .focus-text .sub {
  font-size: 18px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 26px;
}
.focus-row .focus-img {
  aspect-ratio: 4/3; border-radius: 6px; overflow: hidden;
  background: var(--bg-soft);
}
.focus-row .focus-img img { width: 100%; height: 100%; object-fit: cover; }
.focus-row.flip .focus-img { order: -1; }

/* ====== Two-col content ====== */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.two-col-tight {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: start;
}
.img-card {
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-soft);
}
.img-card img { width: 100%; height: 100%; object-fit: cover; }

/* ====== Revenue card grid ====== */
.rev-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 50px;
}
.rev-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 8px; padding: 32px 28px;
  display: flex; flex-direction: column;
}
.rev-card .label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.rev-card h4 {
  font-size: 19px; line-height: 1.2; letter-spacing: -0.01em;
  text-transform: none; margin-bottom: 12px;
  color: var(--ink); font-weight: 700;
}
.rev-card p { font-size: 15px; line-height: 1.55; margin-bottom: 0; }
.rev-card.accent-teal { background: var(--teal-card); color: #fff; border-color: transparent; }
.rev-card.accent-teal h4 { color: #fff; }
.rev-card.accent-teal p  { color: #d6e0e0; }
.rev-card.accent-teal .label { color: var(--lime); }
.rev-card.accent-lime { background: var(--lime); border-color: transparent; }
.rev-card.accent-lime .label { color: var(--teal-deep); }

/* ====== Funding list ====== */
.funding-list { margin-top: 50px; display: flex; flex-direction: column; }
.funding-item {
  display: grid; grid-template-columns: 80px 1fr 0.9fr;
  gap: 40px; padding: 32px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.funding-item:last-child { border-bottom: 1px solid var(--rule); }
.funding-item .idx {
  font-size: 32px; font-weight: 800; color: var(--teal);
  letter-spacing: -0.02em;
}
.funding-item .name {
  font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2;
}
.funding-item .name small {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--teal); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.funding-item .desc { font-size: 16px; line-height: 1.55; color: var(--body); }

/* ====== Phases ====== */
.phases {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 50px;
}
.phase {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 8px; padding: 36px 30px;
  display: flex; flex-direction: column;
}
.phase .stage {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.phase h4 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.01em;
  line-height: 1.1; text-transform: none; margin-bottom: 18px;
}
.phase .timeline {
  display: inline-block; align-self: flex-start;
  background: var(--bg-soft);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 18px;
}
.phase p { font-size: 15px; line-height: 1.55; }
.phase.lead { background: var(--teal-card); color: #fff; border-color: transparent; }
.phase.lead h4 { color: #fff; }
.phase.lead p  { color: #d6e0e0; }
.phase.lead .stage { color: var(--lime); }
.phase.lead .timeline { background: rgba(255,255,255,0.12); color: #fff; }

/* ====== Home preview cards (3-up "where to next") ====== */
.preview-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 50px;
}
.preview {
  display: flex; flex-direction: column;
  border-radius: 10px; padding: 36px 32px 32px;
  min-height: 260px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.preview:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.08); }
.preview .small { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.preview h3 {
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
.preview p { font-size: 15px; line-height: 1.55; flex: 1; margin-bottom: 18px; }
.preview .arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
}
/* Light cards: dark text */
.preview.lime  { background: var(--lime);  color: var(--ink); }
.preview.coral { background: var(--coral); color: var(--ink); }
.preview.lime  h3, .preview.coral h3 { color: var(--ink); }
.preview.lime  p,  .preview.coral p  { color: var(--ink-soft); }
.preview.lime  .arrow, .preview.coral .arrow { color: var(--ink); }

/* Dark cards: white text */
.preview.dark { background: var(--teal-card); color: #fff; }
.preview.ink  { background: var(--ink-soft); color: #fff; }
.preview.dark h3, .preview.ink h3 { color: #fff; }
.preview.dark p,  .preview.ink p  { color: #e6ebec; }
.preview.dark .arrow, .preview.ink .arrow { color: #fff; }

/* ====== Next/prev page nav ====== */
.page-nav {
  background: var(--bg-soft);
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.page-nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 30px; flex-wrap: wrap;
}
.page-nav a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 24px; border-radius: 8px;
  background: #fff; border: 1px solid var(--rule);
  min-width: 240px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.page-nav a:hover { transform: translateY(-2px); border-color: var(--teal); }
.page-nav .meta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal);
}
.page-nav .title { font-weight: 700; font-size: 16px; color: var(--ink); }
.page-nav .next  { text-align: right; }

/* ====== Why-now bullet list ====== */
.whynow-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.whynow-list li {
  display: grid; grid-template-columns: 36px 1fr; gap: 20px; align-items: start;
}
.whynow-list .bullet {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--ink);
}
.whynow-list li p { margin-bottom: 0; font-size: 16px; }

/* ====== Next steps (partner page) ====== */
.next-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 50px;
}
.next-card {
  background: #fff; border-radius: 8px;
  padding: 36px 30px; border-top: 4px solid var(--teal);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.next-card:nth-child(2) { border-top-color: var(--coral); }
.next-card:nth-child(3) { border-top-color: var(--lime); }
.next-card h4 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  text-transform: none; margin-bottom: 14px;
}
.next-card p { font-size: 15px; }

/* ====== Closing CTA ====== */
.closing {
  background: var(--ink-soft); color: #fff;
  padding: 110px 0; overflow: hidden;
}
.closing-inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 60px; align-items: end;
}
.closing .triplet {
  font-weight: 700; font-size: 22px; line-height: 1.4;
  color: var(--lime); margin-bottom: 28px;
}
.closing h2 { color: #fff; max-width: 16ch; }
.closing .meta { font-size: 14px; line-height: 1.6; color: #b5b9bd; }
.closing-cta {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--lime); color: var(--ink);
  padding: 18px 30px; border-radius: 999px;
  font-weight: 700; font-size: 17px;
}

/* ====== Footer ====== */
footer { background: #111312; color: #cfd2d4; padding: 64px 0 36px; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px; align-items: start;
}
footer .brand { color: #fff; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
footer .brand .squiggle { display: inline-block; vertical-align: middle; margin-right: 8px; }
footer .brand .squiggle path { stroke: #fff; }
footer .blurb { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 36ch; color: #cfd2d4; }
footer h5 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #a3a6a9; margin-bottom: 18px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
footer .copy { margin-top: 44px; border-top: 1px solid #2a2c2b; padding-top: 28px; font-size: 13px; color: #797d80; }

/* ====== Mobile ====== */
@media (max-width: 900px) {
  .wrap, .wrap-narrow { padding: 0 24px; }
  .nav-inner { padding: 14px 24px; }
  .nav-links { display: none; }
  section { padding: 60px 0; }
  .page-head { padding: 50px 0 40px; }
  .hero-inner { padding: 60px 0 40px; }
  .two-col, .two-col-tight, .focus-row, .closing-inner {
    grid-template-columns: 1fr; gap: 40px;
  }
  .focus-row.flip .focus-img { order: 0; }
  .cards-3, .rev-grid, .phases, .next-grid, .preview-grid {
    grid-template-columns: 1fr;
  }
  .funding-item { grid-template-columns: 50px 1fr; }
  .funding-item .desc { grid-column: 2; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stats { gap: 28px; flex-wrap: wrap; }
  .stat .n { font-size: 42px; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-nav-inner { flex-direction: column; }
  .page-nav a { width: 100%; }
}
