/* blue-way.net — one stylesheet for every page and every screen size.
   Colours and fonts are set once here, in :root. */

:root {
  --teal: #0383A1;        /* buttons, body text */
  --teal-light: #2BC1C5;
  --navy: #014873;        /* headings, footer */
  --navy-mid: #056588;
  --grey-bg: #F4F4F4;
  --text-dark: #262626;
  --white: #FFFFFF;
  --max: 1100px;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--teal);
  background: var(--white);
}

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

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

h1, h2, h3 { color: var(--navy); line-height: 1.25; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Header and menu ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 64px; height: auto; display: block; }

.nav-toggle {
  display: none;
  background: var(--teal);
  color: var(--white);
  border: 0;
  font: bold 15px var(--font);
  padding: 10px 14px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  display: block;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: .08em;
  padding: 6px 16px;
}

.site-nav a:hover { background: var(--navy-mid); color: var(--white); }
.site-nav a[aria-current="page"] { background: var(--navy); outline: 1px solid var(--white); outline-offset: -3px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, .15);
    padding: 12px 16px 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 10px 16px; }
}

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

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--teal); }

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

.hero {
  position: relative;
  height: min(80vh, 720px);
  min-height: 420px;
  overflow: hidden;
  background: #222;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-caption {
  background: rgba(255, 255, 255, .55);
  padding: 12px 32px 16px;
  margin-bottom: 20px;
  max-width: 100%;
}
.slide-caption .big { display: block; font-size: clamp(40px, 7vw, 64px); font-weight: bold; color: var(--navy-mid); line-height: 1.1; }
.slide-caption .sub { display: block; font-size: clamp(22px, 3.5vw, 34px); font-style: italic; font-weight: bold; color: var(--navy-mid); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, .35);
  color: var(--white);
  border: 0;
  font-size: 32px;
  width: 48px; height: 64px;
  cursor: pointer;
}
.hero-arrow:hover { background: rgba(0, 0, 0, .6); }
.hero-arrow.prev { left: 0; }
.hero-arrow.next { right: 0; }

/* ---------- Home: sections ---------- */

.section { padding: 56px 0; }
.section-grey { background: var(--grey-bg); }

.tagline {
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: bold;
  color: var(--navy);
  letter-spacing: .03em;
  margin: 0 0 32px;
}
.tagline em { font-weight: bold; }

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 760px) { .three-col { grid-template-columns: 1fr; } }

.pillar { text-align: center; font-weight: bold; display: flex; flex-direction: column; align-items: center; }
.pillar h2 { font-size: 18px; letter-spacing: .12em; margin: 0 0 8px; }
.pillar p { flex-grow: 1; margin: 0 0 20px; }

.section-title {
  text-align: center;
  font-size: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.rule { width: 36px; height: 4px; background: var(--navy); margin: 0 auto 32px; border: 0; }
.rule-thin { width: 50px; height: 1px; background: var(--teal); margin: 12px auto 20px; border: 0; }

.who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  font-size: 14px;
}
@media (max-width: 760px) { .who { grid-template-columns: 1fr; } }
.who h3 { font-size: 16px; margin: 0 0 8px; }
.who-photos { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.who-photos img { height: 245px; width: auto; object-fit: cover; }
@media (max-width: 500px) { .who-photos img { height: 180px; } }

.connect {
  background: url("../images/connect.jpg") center / cover no-repeat;
  text-align: center;
  padding: 120px 16px;
}
.connect h2 { color: #FFFF00; font-size: clamp(34px, 5vw, 52px); margin: 0; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.connect p { color: #FFFF00; font-size: clamp(20px, 2.6vw, 28px); font-weight: bold; margin: 8px 0 28px; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.quote-card { display: flex; gap: 16px; align-items: flex-start; }
.quote-card img { width: 110px; flex-shrink: 0; }
.quote-card h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.quote-card blockquote { margin: 0 0 8px; font-size: 14px; font-style: italic; }
.quote-card cite { font-style: normal; font-weight: bold; }

/* Client logos */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 24px;
  align-items: center;
}
.logos a, .logos span { display: flex; align-items: center; justify-content: center; height: 95px; }
.logos img { max-height: 95px; max-width: 100%; width: auto; }

/* ---------- Inner pages ---------- */

.page-head { text-align: center; padding: 32px 16px 8px; }
.page-head h1 { font-size: clamp(30px, 4vw, 38px); letter-spacing: .03em; margin: 0; text-transform: uppercase; }
.page-head p { font-size: 19px; margin: 0; }

.page-body {
  position: relative;
  margin: 8px auto 48px;
  padding: 24px;
  background-size: cover;
  background-position: center;
}
/* faded photo behind the text, like the old site */
.page-body.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .86);
}
.page-body > * { position: relative; }

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  font-size: 15px;
}
@media (max-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cols { grid-template-columns: 1fr; } }
.cols h2 { font-size: 17px; letter-spacing: .08em; margin: 0 0 12px; color: var(--navy-mid); }
.cols p { margin: 0 0 14px; }
.cols .motto { font-style: italic; }
.cols .center { text-align: center; margin-top: 28px; }

.reading h2 { font-weight: normal; font-size: 20px; letter-spacing: 0; color: var(--navy); }
.reading ul { padding-left: 18px; margin: 0; font-size: 14px; color: var(--navy); }
.reading li { margin-bottom: 6px; }
.reading a { text-decoration: none; }
.reading a:hover { text-decoration: underline; }

.prose { max-width: 820px; margin: 0 auto; font-size: 15px; }
.prose h2 { font-size: 20px; margin: 32px 0 8px; }
.prose h3 { font-size: 16px; margin: 20px 0 6px; }
.prose p { margin: 0 0 12px; }

/* ---------- Read page ---------- */

.read-banner {
  background: url("../images/books-stack.jpg") center / cover no-repeat;
  height: 220px;
}
.moved-books { text-align: center; font-size: 22px; color: var(--navy); margin: 40px 0; }
.moved-books a { font-size: 1.05em; font-weight: bold; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 20px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
.book { text-align: center; font-size: 14px; font-style: italic; text-decoration: none; color: var(--teal); }
.book:hover { color: var(--navy); }
.book img { height: 220px; width: auto; object-fit: contain; display: block; margin: 0 auto 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
@media (max-width: 560px) { .book img { height: 170px; } }

.reports { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; margin-bottom: 40px; }
@media (max-width: 760px) { .reports { grid-template-columns: 1fr; } }
.report { display: flex; gap: 20px; align-items: flex-start; font-size: 14px; }
.report > img { width: 140px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
@media (max-width: 420px) { .report > img { width: 100px; } }
.report h3 { margin: 0 0 6px; font-size: 16px; }
.report p { margin: 0 0 10px; }

.paper { font-size: 14px; margin-bottom: 36px; max-width: 900px; }
.paper h3 { font-size: 16px; margin: 0 0 8px; }
.paper p { margin: 0 0 10px; }

.pdf-link { display: inline-flex; align-items: center; gap: 8px; margin: 4px 16px 4px 0; text-decoration: none; }
.pdf-link img { width: 25px; height: 25px; }
.pdf-link:hover span { text-decoration: underline; }

/* ---------- Hear page ---------- */

.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 32px 0; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }
.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 16px;
}
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-box p { font-size: 13px; margin: 12px 0 0; }
.video-box a { color: var(--white); }
.video-caption { font-weight: bold; margin-top: 8px; color: var(--navy); }

.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; font-size: 15px; margin-top: 32px; }
@media (max-width: 760px) { .testimonials { grid-template-columns: 1fr; } }
.testimonials blockquote { margin: 0; font-style: italic; }
.testimonials cite { display: block; font-style: normal; font-weight: bold; margin-top: 4px; color: var(--navy); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; margin: 32px 0 64px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h2 { font-size: 16px; letter-spacing: .1em; margin: 0 0 10px; }
.contact-grid p { font-size: 18px; margin: 0; color: var(--text-dark); }

/* ---------- Legal pages ---------- */

.lang-switch { text-align: center; margin: 8px 0 24px; font-size: 15px; }
.legal-block { border-top: 1px solid #D4D4D4; padding-top: 8px; margin-top: 40px; }
.credits { font-size: 14px; padding-left: 18px; }

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

.site-footer { background: var(--navy); color: var(--white); padding: 24px 0; }
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer img.logo { width: 90px; }
.site-footer img.cycle { width: 140px; }
.footer-text { text-align: center; flex: 1; min-width: 220px; font-size: 13px; }
.footer-text a { color: var(--white); font-weight: bold; font-size: 15px; margin: 0 10px; text-decoration: none; display: inline-block; margin-top: 8px; }
.footer-text a:hover { text-decoration: underline; }
@media (max-width: 620px) {
  .site-footer .wrap { flex-direction: column; }
}
