/* Building Futures (golucky.blue-way.net) — one stylesheet for every page and screen size.
   Colours are set once, in :root. */

:root {
  --text: #333333;
  --muted: #777777;
  --accent: #1dc6c6;      /* current menu item */
  --link: #0e7c9e;        /* links */
  --navy: #056588;        /* slideshow labels and buttons */
  --gold: #ffdf60;        /* slideshow button text */
  --bar: #F7F7F7;
  --line: #E4E4E4;
  --max: 1140px;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: #FFFFFF; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */

.site-header { background: #FFFFFF; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { display: block; height: 50px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 16px; }
.site-nav a { color: var(--text); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle { display: none; background: var(--text); color: #FFFFFF; border: 0; font: 600 15px var(--font); padding: 9px 14px; cursor: pointer; }

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

/* ---------- Title bar ---------- */

.title-bar { background: var(--bar); border-bottom: 1px solid var(--line); padding: 26px 0; }
.title-bar h1 { margin: 0; font-size: 24px; font-weight: 400; line-height: 1.3; }

/* ---------- Content ---------- */

.content { padding-top: 32px; padding-bottom: 56px; }
.content h2 { font-size: 24px; font-weight: 500; margin: 32px 0 12px; }
.content h3 { font-size: 19px; font-weight: 500; margin: 28px 0 10px; }
.content p { margin: 0 0 14px; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; clear: both; }

.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; margin: 20px 0; align-items: start; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; } .col-12 { grid-column: span 12; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 12px; } .row > .col { grid-column: auto; } }

figure { margin: 0 0 16px; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.alignleft { float: left; margin: 4px 20px 12px 0; }
.alignright { float: right; margin: 4px 0 12px 20px; }
.aligncenter { display: block; margin: 12px auto; }
@media (max-width: 500px) { .alignleft, .alignright { float: none; display: block; margin: 0 0 12px; } }
.row::after, .content::after { content: ""; display: block; clear: both; }

.content h2 { color: var(--navy); font-weight: 400; }
details { border: 1px solid var(--line); margin: 0 0 10px; padding: 0 16px; }
details > summary { cursor: pointer; font-size: 16px; padding: 12px 0; color: var(--link); list-style: none; display: flex; justify-content: space-between; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; color: var(--text); font-size: 20px; line-height: 1; }
details[open] > summary::after { content: "–"; }
details[open] { padding-bottom: 8px; }
.video-caption { font-weight: 600; margin: 8px 0 0; color: var(--navy); }

.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; font-size: 14px; }
td, th { padding: 6px 10px 6px 0; vertical-align: top; border-bottom: 1px solid var(--line); }

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

/* videos: nothing loads from YouTube/Vimeo until the visitor clicks Play */
.video { margin: 16px 0 24px; max-width: 720px; }
.video-box { position: relative; aspect-ratio: 16 / 9; background: #1f3b4d; color: #FFFFFF; display: flex; align-items: center; justify-content: center; text-align: center; 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: #FFFFFF; text-decoration: underline; }
.btn { background: var(--accent); color: #FFFFFF; border: 0; padding: 10px 18px; font: 600 15px var(--font); cursor: pointer; }
.btn:hover { background: #159c9c; }

/* ---------- Slideshow (Home and Contact) ---------- */

.slides { position: relative; height: min(78vh, 760px); min-height: 380px; 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; gap: 24px;
  padding: 16px; text-align: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-label {
  background: #FFFFFF; color: var(--navy);
  font-size: clamp(30px, 5vw, 60px); font-weight: 700; line-height: 1.15;
  padding: 6px 24px; border-radius: 15px; border: 5px solid #FFFFFF;
}
a.slide-label { text-decoration: none; }
a.slide-label:hover { text-decoration: underline; }
.slide-button {
  background: var(--navy); color: var(--gold);
  font-size: clamp(26px, 4vw, 50px); font-weight: 600; line-height: 1.2;
  padding: 4px 26px; border-radius: 15px; border: 5px solid var(--navy);
}
.slide-button:hover { color: #FFFFFF; text-decoration: none; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0, 0, 0, .35); color: #FFFFFF; border: 0; font-size: 32px; width: 48px; height: 64px; cursor: pointer; }
.slide-arrow:hover { background: rgba(0, 0, 0, .6); }
.slide-arrow.prev { left: 0; } .slide-arrow.next { right: 0; }

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

.site-footer { background: #222222; color: #BBBBBB; font-size: 13px; padding: 20px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #FFFFFF; }
