/* Keystone Bloom website.
   Palette: Moody Muted (olive, plum, espresso, with cream and stone neutrals).
   Type: Tenor Sans (headings, nav, labels) and Jost (body). */

@font-face {
  font-family: "Tenor Sans";
  src: url("assets/fonts/TenorSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/Jost-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --olive: #2C3A18;
  --plum: #3E283C;
  --espresso: #241810;
  --calla: #9A8098;
  --leaf: #A08068;
  --dark: #1E2A12;
  --desc: #3C281C;
  --stone: #EDE8DB;
  --cream: #F6F3EA;
  --charcoal: #2E2F2C;
  --line: #D8D0C0;
  --plum-tint: #D7C8D4;
  --olive-soft: #5A6A38;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Top bar: olive field with a plum cap behind the status label, so the split never cuts type */
.topbar {
  background: var(--olive);
  color: var(--cream);
  font-family: "Tenor Sans", serif;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0 0 0 32px;
  gap: 16px;
}
.topbar .tb-left {
  color: var(--stone);
  display: flex;
  align-items: center;
  padding: 9px 0;
}
.topbar .tb-right {
  color: var(--plum-tint);
  background: var(--plum);
  display: flex;
  align-items: center;
  padding: 9px 32px 9px 28px;
  margin-right: calc(50% - 50vw);
}

header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 1 auto; }
.brand img { height: 68px; width: auto; display: block; max-width: 280px; }

nav { display: flex; align-items: center; gap: 28px; }
nav a {
  font-family: "Tenor Sans", serif;
  color: var(--olive);
  text-decoration: none;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
nav a:hover, nav a.on { color: var(--plum); border-bottom-color: var(--plum); }
nav a.cta {
  background: var(--plum);
  color: var(--cream);
  padding: 11px 20px;
  border-radius: 0;
  border: 0;
}
nav a.cta:hover { background: var(--olive); color: var(--cream); border-bottom-color: transparent; }

/* Hero */
.hero {
  position: relative;
  color: var(--cream);
  background: var(--dark) url(assets/hero-colonnade.jpg) center 42% / cover no-repeat;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(30,42,18,.94) 0%,
    rgba(44,58,24,.88) 34%,
    rgba(44,58,24,.58) 62%,
    rgba(62,40,60,.38) 82%,
    rgba(62,40,60,.28) 100%);
}
.hero .wrap { position: relative; width: 100%; z-index: 1; }
.hero .copy { max-width: 660px; padding: 96px 0 104px; }
.hero-rule {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--olive) 0 33.3%, var(--plum) 33.3% 66.6%, var(--leaf) 66.6%);
  z-index: 2;
}

.eyebrow {
  font-family: "Tenor Sans", serif;
  color: var(--plum);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero .eyebrow { color: var(--plum-tint); }

h1, h2, h3 {
  font-family: "Tenor Sans", serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.14;
  margin-bottom: 22px;
  letter-spacing: .03em;
  color: var(--cream);
}
.lede {
  font-size: 18px;
  font-weight: 400;
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--stone);
}
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 0;
  font-family: "Tenor Sans", serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-solid { background: var(--plum); color: var(--cream); }
.btn-solid:hover { background: var(--olive); color: var(--cream); }
.btn-ghost { border-color: var(--cream); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--olive); }
.btn-olive { background: var(--olive); color: var(--cream); }
.btn-olive:hover { background: var(--plum); color: var(--cream); }
.btn-ghost-dark { border-color: var(--olive); color: var(--olive); }
.btn-ghost-dark:hover { background: var(--olive); color: var(--cream); }

/* Sections */
section { padding: 84px 0; }
.sec-head { max-width: 680px; margin-bottom: 44px; }
h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.22;
  margin-bottom: 14px;
  letter-spacing: .03em;
  color: var(--dark);
}
.sub { color: var(--desc); font-size: 17px; font-weight: 400; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile {
  border: 1px solid var(--line);
  border-top: 5px solid var(--olive);
  padding: 32px 28px 34px;
  background: #fffdf8;
}
.tile:nth-child(2) { border-top-color: var(--plum); }
.tile:nth-child(3) { border-top-color: var(--leaf); }
.tile h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: .04em; color: var(--olive); }
.tile:nth-child(2) h3 { color: var(--plum); }
.tile p { color: var(--desc); font-size: 15.5px; }

.values { background: var(--stone); }
.values .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.val { padding: 28px 26px 8px 0; }
.val + .val { padding-left: 26px; border-left: 1px solid var(--line); }
.val b {
  display: block;
  font-family: "Tenor Sans", serif;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 8px;
  font-weight: 400;
}
.val p { font-size: 15px; color: var(--desc); }

.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.approach ol { list-style: none; counter-reset: s; }
.approach li {
  counter-increment: s;
  position: relative;
  padding: 0 0 22px 56px;
  color: var(--desc);
  font-size: 15.5px;
}
.approach li b {
  display: block;
  font-family: "Tenor Sans", serif;
  color: var(--dark);
  font-size: 17px;
  letter-spacing: .04em;
  margin-bottom: 2px;
  font-weight: 400;
}
.approach li:before {
  content: counter(s);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  font-family: "Tenor Sans", serif;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}
.approach li:nth-child(even):before { background: var(--plum); }
.links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.contact {
  background: var(--olive);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.contact .wrap { position: relative; z-index: 1; }
.contact h2 { margin-top: 2px; color: var(--cream); }
.contact p { color: var(--stone); font-size: 17px; max-width: 640px; }
.contact .eyebrow { color: var(--plum-tint); }
.contact:after {
  content: "";
  position: absolute;
  right: -30px; top: -50px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background: var(--leaf);
}
.contact:before {
  content: "";
  position: absolute;
  right: 110px; bottom: -55px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--calla);
}
.contact .placehold {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.contact .placehold a {
  font-family: "Tenor Sans", serif;
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--leaf);
  padding-bottom: 2px;
}
.contact .placehold a:hover { border-bottom-color: var(--cream); }
.contact .placehold small {
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--plum-tint);
  text-transform: uppercase;
  font-family: "Tenor Sans", serif;
}
.contact .where {
  margin-top: 22px;
  font-family: "Tenor Sans", serif;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--plum-tint);
}

footer {
  background: var(--dark);
  color: var(--stone);
  font-size: 13px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 26px;
}
footer a { text-decoration: none; margin-left: 22px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--cream); }


/* ---- Additions for the Mission and Corporate Structure pages ---- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--plum); color: var(--cream); padding: 10px 16px; z-index: 20; font-family: "Tenor Sans", serif; }
.skip:focus { left: 8px; top: 8px; }
a:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.contact a:focus-visible, footer a:focus-visible, .hero a:focus-visible { outline-color: var(--plum-tint); }

.page-hero {
  position: relative;
  color: var(--cream);
  background: var(--dark) var(--ph-img) center 40% / cover no-repeat;
  overflow: hidden;
}
.page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(30,42,18,.95) 0%,
    rgba(44,58,24,.90) 42%,
    rgba(44,58,24,.66) 72%,
    rgba(62,40,60,.50) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .copy { max-width: 700px; padding: 84px 0 92px; }
.page-hero .eyebrow { color: var(--plum-tint); }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lede { margin-bottom: 0; }
.page-hero.mission { --ph-img: url(assets/banner-facade.jpg); }
.page-hero.structure { --ph-img: url(assets/hero-colonnade.jpg); }

.prose { max-width: 720px; }
.prose p { font-size: 17.5px; color: var(--desc); margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tiles.two .tile:nth-child(3) { border-top-color: var(--plum); }
.tiles.two .tile:nth-child(3) h3 { color: var(--plum); }
.tiles.two .tile:nth-child(4) { border-top-color: var(--leaf); }
.tiles.two .tile:nth-child(4) h3 { color: var(--olive); }
.note { margin-top: 30px; max-width: 760px; padding: 16px 20px; border-left: 4px solid var(--plum); background: var(--stone); color: var(--desc); font-size: 15.5px; }
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: "Tenor Sans", serif; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--plum); padding-top: 3px; }
.facts dd { color: var(--desc); font-size: 16.5px; }
.band { background: var(--stone); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band h2 { margin-bottom: 6px; }
.band .links { margin-top: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .tiles.two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-hero .copy { padding: 56px 0 60px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .values .grid { grid-template-columns: 1fr 1fr; }
  .val:nth-child(3) { padding-left: 0; border-left: 0; }
  .val:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 28px; }
  .approach { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .topbar .wrap span:last-child { display: none; }
  header .wrap { height: auto; flex-wrap: wrap; padding-top: 14px; padding-bottom: 0; }
  .brand img { height: 52px; }
  nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 0 0;
    margin-top: 6px;
    border-top: 1px solid var(--line);
    white-space: nowrap;
  }
  nav a { font-size: 12px; padding: 8px 0 10px; }
  nav a.cta { display: none; }
  .hero { min-height: 520px; background-position: 62% 30%; }
  .hero:before {
    background: linear-gradient(180deg,
      rgba(30,42,18,.30) 0%,
      rgba(30,42,18,.78) 55%,
      rgba(30,42,18,.94) 100%);
  }
  .hero .copy { padding: 150px 0 56px; }
  .lede { font-size: 16.5px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .14em; }
  section { padding: 56px 0; }
  .values .grid { grid-template-columns: 1fr; }
  .val, .val + .val { padding: 22px 0 4px; border-left: 0; }
  .val:nth-child(n+2) { border-top: 1px solid var(--line); }
  .val:nth-child(n+3) { margin-top: 0; }
  .contact:after { width: 110px; height: 110px; right: -30px; top: -40px; }
  .contact:before { display: none; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  footer a { margin-left: 0; margin-right: 18px; }
}
