/* Peak Achievement. Plain, square and traditional on purpose:
   no rounded corners, no shadows, no gradients.
   Palette "The Modern Peak": navy, teal, amber, ivory, charcoal. */

:root {
  --navy: #142d46;
  --navy-dark: #0c1e30;
  --teal: #167d86;
  --teal-dark: #10606a;
  --teal-tint: #e4f1f2;
  --amber: #e5a83b;
  --ivory: #f5f3ed;
  --error: #a8321e;
  --ink: #26292c;
  --charcoal: #293540;
  --grey: #5c6670;
  --rule: #d5d1c6;
  --panel: var(--ivory);
  --backdrop: #e6e3da;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--backdrop);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

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

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: #fff; padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; }

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

/* ---------- Page box ---------- */

.page {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

.utility {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 28px;
  background: var(--charcoal);
  color: #d3d9df;
  font-size: .85rem;
}
.utility a { color: #fff; font-weight: 600; text-decoration: none; }
.utility a:hover { text-decoration: underline; }

/* Masthead: the 2006 logo, large and centered, tagline under "Corporation". The original
   logo sat white-on-grey, so the masthead is dark. */
.masthead {
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 28px;
  background: var(--charcoal);
  border-top: 1px solid #3d4955;
  text-align: center;
}
.brand { display: flex; align-items: flex-end; gap: 22px; text-decoration: none; }
.brand img { flex: none; width: 98px; height: auto; margin-bottom: 4px; }   /* same height as the lettering, top level with "PEAK" */
.brand-text { display: flex; flex-direction: column; padding-bottom: 3px; }
.brand-name {
  font-family: var(--serif);
  font-size: 3.1rem;
  font-variant: small-caps;
  font-weight: 400;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1;
  padding-bottom: 8px;
  border-bottom: 1px solid #8d97a1;
}
.brand-sub {
  align-self: flex-end;
  font-family: var(--serif);
  font-size: .95rem;
  color: #e3e6e9;
  margin-top: 5px;
  letter-spacing: .03em;
}
.tagline {                      /* tucked under "Corporation", inside the lockup */
  align-self: flex-end;
  margin-top: 6px;
  font: italic 400 1.32rem/1.3 var(--serif);
  color: var(--amber);
  letter-spacing: .01em;
  white-space: nowrap;
}

/* ---------- Main menu ---------- */

/* stays at the top while scrolling (phones excepted: there it is four rows tall) */
.menu { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 4px solid var(--teal); }
[id] { scroll-margin-top: 110px; }   /* in-page links land below the stuck menu */
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; }
.menu li { flex: 1 1 auto; }
.menu li { border-right: 1px solid var(--navy-dark); }
.menu li:last-child { border-right: 0; }
.menu a {
  display: block;
  padding: 13px 12px;
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
}
.menu a:hover { background: var(--navy-dark); color: #fff; }
.menu a[aria-current="page"] { background: var(--teal); }

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

.btn {
  display: inline-block;
  padding: 11px 22px;
  background: var(--teal);
  border: 1px solid var(--teal);
  color: #fff;
  font: 600 .9rem/1.2 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--teal); }
.btn.secondary:hover { background: var(--teal-tint); color: var(--teal-dark); }

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

/* ---------- Home: hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px;
  align-items: center;
  padding: 48px 28px;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
  color: var(--charcoal);
}
.hero-text { align-self: start; padding-top: 12px; }   /* top-aligned with the photo, no empty band above */
.hero h1 { color: var(--navy); font-size: 2.75rem; line-height: 1.15; margin-bottom: .45em; }
.hero-lead { font-size: 1.12rem; color: var(--ink); }
.hero-services {
  margin: 18px 0 0; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: .95rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
}
.hero .actions { margin-top: 26px; }
.hero-photo { margin: 0; border: 1px solid var(--rule); border-top: 4px solid var(--teal); padding: 8px; background: #fff; }
.hero-photo figcaption {
  padding: 10px 6px 4px;
  color: var(--grey);
  font-size: .88rem;
}
.hero-photo figcaption strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }




/* ---------- Layout pieces ---------- */

.section { padding: 40px 28px; border-bottom: 1px solid var(--rule); }
.section.grey { background: var(--panel); }
.section > h2:first-child, .section-title { margin-bottom: 20px; }

.section-title {
  font-size: 1.35rem;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--teal);
}

.lead { font-size: 1.1rem; color: var(--charcoal); }
.intro-wide { max-width: 52em; margin-bottom: 24px; }
.muted { color: var(--grey); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.main-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Page heading band on inner pages */
.page-head {
  padding: 32px 28px 28px;
  background: var(--ivory);
  border-bottom: 3px solid var(--teal);
}
.page-head h1 { color: var(--navy); margin-bottom: .35em; }
.page-head p { margin: 0; max-width: 46em; color: var(--charcoal); }
.page-head .page-sub { font: 400 1.3rem/1.4 var(--serif); color: var(--teal); }   /* a subtitle that reads as part of the title */
.page-head .crumbs { font-size: .85rem; color: var(--grey); margin-bottom: 10px; }
.page-head .crumbs a { color: var(--grey); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Bordered box with a title strip */
.box { border: 1px solid var(--rule); background: #fff; }
.box-head {
  margin: 0;
  padding: 10px 16px;
  background: var(--panel);
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.box-body { padding: 16px; }
.box-body > :last-child { margin-bottom: 0; }

/* Facts table inside a box */
.facts { width: 100%; border-collapse: collapse; font-size: .95rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 9px 16px; border-bottom: 1px solid var(--rule); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 40%; font-weight: 600; color: var(--grey); }

.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Numbered table: the five areas */
.numbered { width: 100%; border-collapse: collapse; border: 1px solid var(--rule); }
.numbered td { padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.numbered td:first-child {
  width: 56px;
  background: var(--navy);
  color: var(--amber);
  font: 700 1.2rem/1 var(--serif);
  text-align: center;
  border-bottom-color: var(--navy-dark);
}
.numbered strong { display: block; font-size: 1.02rem; }
.numbered span { color: var(--grey); font-size: .95rem; }

/* Quotes */
.quote { margin: 0; border: 1px solid var(--rule); border-left: 4px solid var(--teal); background: #fff; padding: 18px 20px; }
.quote blockquote { margin: 0 0 12px; font-family: var(--serif); font-size: .98rem; line-height: 1.65; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { font-size: .92rem; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--grey); }
.quote-list { display: grid; gap: 18px; }

/* Program detail rows on programs.html */
.program-detail { display: grid; grid-template-columns: 260px minmax(0, 1fr); border: 1px solid var(--rule); }
.program-detail + .program-detail { margin-top: 20px; }
.program-detail .label { background: var(--navy); color: #fff; padding: 20px; }
.program-detail .label h2 { color: #fff; font-size: 1.25rem; }
.program-detail .label p { color: #d3d9df; font-size: .92rem; margin: 0; }
.program-detail .detail { padding: 20px 24px; }
.program-detail ul { margin: 0 0 1em; padding-left: 1.2em; }
.program-detail li { margin-bottom: .3em; }

ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border: 1px solid var(--rule); }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; border-bottom: 1px solid var(--rule); }
ol.steps li:last-child { border-bottom: 0; }
ol.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); border-right: 1px solid var(--rule);
  font: 700 1.15rem/1 var(--serif); color: var(--teal);
}
ol.steps div { padding: 14px 16px; }
ol.steps strong { display: block; }

/* Call-to-action strip */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 30px 28px; background: var(--teal); color: #fff;
}
.cta h2 { color: #fff; margin: 0 0 .2em; font-size: 1.35rem; }
.cta p { margin: 0; color: #e8f3f4; }
.cta .phone { color: #fff; font-weight: 700; }

/* About */
.portrait { border: 1px solid var(--rule); padding: 6px; background: #fff; }
.portrait figcaption { font-size: .85rem; color: var(--grey); padding: 8px 4px 2px; }

/* Articles */
.article { border: 1px solid var(--rule); padding: 24px 28px; }
.article + .article { margin-top: 24px; }
.article h2 { font-size: 1.3rem; margin-bottom: .2em; }
.article .byline { font-size: .88rem; color: var(--grey); margin-bottom: 1.2em; }
.article h3 { font-family: var(--sans); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-top: 1.4em; }
.article ol { padding-left: 1.3em; }
.toc { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .4em; }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .95rem; }
.req { color: var(--error); }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 10px 12px;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #a9aeb3; border-radius: 0;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%), linear-gradient(-45deg, transparent 50%, var(--charcoal) 50%);
  background-position: right 18px top 50%, right 12px top 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; border-color: var(--teal); }
.invalid { border-color: var(--error); background: #fbeeeb; }
.hint-inline { font-weight: 400; color: var(--grey); font-size: .88rem; }
.hint { display: block; font-weight: 400; color: var(--grey); font-size: .88rem; }
.hp { position: absolute; left: -9999px; }
.form-error { color: var(--error); font-weight: 600; margin: 12px 0 0; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.form-foot p { margin: 0; font-size: .88rem; color: var(--grey); }
.thanks { border: 1px solid var(--rule); border-top: 3px solid var(--teal); padding: 24px; background: var(--panel); }
.thanks:focus { outline: none; }

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

.footer { background: var(--charcoal); color: #c5ccd3; font-size: .92rem; border-top: 4px solid var(--teal); }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; padding: 30px 28px 20px; }
.footer p { margin: 0 0 .6em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .4em; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-name { font-family: var(--serif); font-size: 1.1rem; color: #fff; letter-spacing: .05em; text-transform: uppercase; }
.footer-head { color: #fff; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.legal { padding: 14px 28px; border-top: 1px solid #3d4955; font-size: .82rem; margin: 0 !important; }

/* ---------- Services, the difference, areas ---------- */

/* three services as open columns with thin rules between them, not boxes */
.services { display: grid; grid-template-columns: repeat(3, 1fr); }
.service {
  display: flex; flex-direction: column;
  padding: 6px 26px 4px;
  border-left: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
}
.service:first-child { padding-left: 0; border-left: 0; }
.service:last-child { padding-right: 0; }
.service-num { font: 700 .85rem/1 var(--sans); letter-spacing: .14em; color: var(--amber); margin-bottom: 12px; }
.service h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: .45em; }
.service p { color: var(--charcoal); font-size: .98rem; }
.service .more { margin-top: auto; color: var(--teal); }
.service:hover { color: var(--ink); }
.service:hover h3 { color: var(--teal); }
.service:hover .more { text-decoration: underline; }

/* bullet list with small teal squares */
.bullets { list-style: none; margin: 0 0 18px; padding: 0; }
.bullets li { position: relative; padding: 0 0 12px 24px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--teal); }

.big-title { font-size: 2.1rem; line-height: 1.2; color: var(--navy); margin-bottom: 28px; }
.big-title span { color: var(--teal); }
.difference .emph { font: italic 400 1.15rem/1.5 var(--serif); color: var(--navy); border-left: 4px solid var(--amber); padding-left: 16px; }
.difference .emph strong { font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
.direct { margin-top: 32px; padding: 26px 28px 10px; background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--navy); }
.direct h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: .8em; }

.areas { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--rule); }
.areas div { padding: 16px 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; }
.areas div:nth-child(2n) { border-right: 0; }
.areas div:nth-last-child(-n+2):nth-child(odd), .areas div:last-child { border-bottom: 0; }
.areas strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.areas span { color: var(--grey); font-size: .95rem; }
.grey .areas { grid-template-columns: repeat(5, 1fr); }
.grey .areas div { border-bottom: 0; border-right: 1px solid var(--rule); }
.grey .areas div:last-child { border-right: 0; }

.kicker { margin: 0 0 8px; font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.signature { border-top: 4px solid var(--amber); }
.sub { font-family: var(--sans); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin: 26px 0 12px; }
.program-detail .label h3 { color: #fff; font-size: 1.2rem; }
.facts.bordered { border: 1px solid var(--rule); }
.footer-small { font-size: .82rem; color: #9aa6b2; }

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; }
  .main-side { grid-template-columns: 1fr; }
  .three-col, .services { grid-template-columns: 1fr; }
  .service, .service:first-child, .service:last-child { padding: 18px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .service:first-child { border-top: 0; padding-top: 0; }
  .program-detail { grid-template-columns: 1fr; }
  .grey .areas { grid-template-columns: 1fr 1fr; }
  .grey .areas div:nth-child(2n) { border-right: 0; }
  .grey .areas div:nth-child(-n+4) { border-bottom: 1px solid var(--rule); }
  .grey .areas div:nth-child(5):last-child { grid-column: 1 / -1; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {    /* seven menu items: two rows of tiles */
  .menu ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu li { border-bottom: 1px solid var(--navy-dark); }
  .menu li:nth-child(4n) { border-right: 0; }
  .menu li:last-child { grid-column: span 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .page-head .page-sub { font-size: 1.1rem; }
  .utility { padding: 6px 16px; flex-direction: column; gap: 2px; }
  .masthead { padding: 22px 16px; }
  .brand { gap: 14px; }
  .brand-name { font-size: 1.95rem; padding-bottom: 6px; }
  .brand-sub { font-size: .75rem; }
  .brand img { width: 70px; }
  .tagline { font-size: .9rem; margin-top: 4px; }
  .big-title { font-size: 1.6rem; }
  .areas, .grey .areas { grid-template-columns: 1fr; }
  .areas div, .grey .areas div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .areas div:last-child, .grey .areas div:last-child { border-bottom: 0; }
  .direct { padding: 20px 16px 6px; }
  .menu { position: static; }
  [id] { scroll-margin-top: 0; }
  /* the menu becomes a grid of square tiles: no hamburger to find */
  .menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu a { white-space: normal; }
  .menu li { border-right: 1px solid var(--navy-dark); border-bottom: 1px solid var(--navy-dark); }
  .menu li:nth-child(2n) { border-right: 0; }
  .menu li:nth-child(4n) { border-right: 0; }
  .menu a { padding: 12px 16px; }
  .hero h1 { font-size: 2rem; }
  .section, .page-head, .cta, .hero { padding-left: 16px; padding-right: 16px; }
  .two-col, .form-grid, .footer-cols { grid-template-columns: 1fr; }
  .footer-cols, .legal { padding-left: 16px; padding-right: 16px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .article { padding: 18px 16px; }
}
.after { margin: 20px 0 0; }
.mt { margin-top: 28px; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--amber); }
.pull {
  margin: 32px 0 0;
  padding: 22px 28px;
  border-left: 6px solid var(--amber);
  background: var(--ivory);
}
.difference .pull { background: #fff; }
.pull p { margin: 0; font: italic 400 1.45rem/1.4 var(--serif); color: var(--navy); }
@media (max-width: 720px) { .pull p { font-size: 1.15rem; } .pull { padding: 16px 18px; } }
@media (max-width: 440px) {     /* keep "Peak Achievement" on one line */
  .brand { gap: 10px; }
  .brand img { width: 62px; }
  .brand-name { font-size: 1.55rem; }
  .tagline { font-size: .76rem; }
}

@media (max-width: 360px) {     /* narrowest phones: keep the name on one line */
  .brand img { width: 58px; }
  .brand-name { font-size: 1.38rem; }
  .tagline { font-size: .66rem; }
}
