/* Coherence Labs — static site styles */
:root {
  --text: #333;
  --heading: #444;
  --muted: #777;
  --link: #367bb7;
  --link-hover: #24598a;
  --line: #e5e5e5;
  --bg-alt: #f7f7f7;
  --max: 1140px;
  --radius: 2px;
}

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

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

body {
  margin: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

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

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 300;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #000; color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px;
}
.logo img { width: 200px; height: auto; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; cursor: pointer; color: var(--heading);
  font: inherit; font-size: 14px;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px;
  color: var(--heading); font-size: 15px;
  border-top: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus { color: var(--link); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--link); border-top-color: var(--link); }

@media (max-width: 760px) {
  .site-header .container { min-height: 68px; flex-wrap: wrap; }
  .logo img { width: 160px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; padding-bottom: 10px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { border-top: 0; border-left: 2px solid transparent; padding: 10px 8px; }
  .site-nav a[aria-current="page"] { border-left-color: var(--link); }
}

/* ---------- Slideshow ---------- */
.slideshow {
  position: relative; overflow: hidden; background: #111;
  aspect-ratio: 4 / 1;
}
.slideshow--hero { aspect-ratio: 5 / 2; max-height: 70vh; }
.slideshow--boxed { max-width: var(--max); margin: 0 auto; }

.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide-caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 20px; gap: .4em;
  pointer-events: none;
}
.slide-caption span {
  font-family: "Open Sans", Arial, sans-serif; font-weight: 700;
  color: #fff; font-size: clamp(1.1rem, 3.6vw, 2.6rem); line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.slide-caption .band {
  background: rgba(0,0,0,.55); padding: .15em .7em; text-shadow: none;
}

.slide-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.slide-dots button {
  width: 11px; height: 11px; padding: 0; border-radius: 50%;
  border: 1px solid #fff; background: rgba(255,255,255,.35); cursor: pointer;
}
.slide-dots button[aria-current="true"] { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section--tight { padding: 45px 0; }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }

.lead {
  font-size: 1.05rem; font-weight: 700; color: #555;
  max-width: 820px; margin: 0 auto;
}

/* Home feature cards */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 60px; text-align: center;
}
.feature-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.feature-title::before, .feature-title::after {
  content: ""; flex: 1; border-top: 1px solid var(--line);
}
.feature img {
  margin: 0 auto 22px; box-shadow: 0 8px 22px rgba(0,0,0,.22);
  aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
}
.feature a.feature-img { display: block; }
.feature a.feature-img:hover img { box-shadow: 0 10px 28px rgba(0,0,0,.32); }
.feature p { font-size: 1.05rem; color: #555; }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* Two-column content */
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.cols--half { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .cols, .cols--half { grid-template-columns: 1fr; } }

.media-left { display: flow-root; }
.media-left img { float: left; width: 300px; margin: 0 28px 16px 0; }
@media (max-width: 560px) { .media-left img { float: none; width: 100%; max-width: 300px; margin: 0 0 18px; } }

blockquote {
  margin: 1.4em 0 1.4em 40px; padding: 0;
  font-weight: 700; color: #444;
}

/* Media page */
.video-post { padding: 40px 0; border-top: 1px solid var(--line); }
.video-post:first-of-type { border-top: 0; }
.video-post .meta { color: var(--muted); font-size: 13px; margin-bottom: 1em; }
.video {
  position: relative; aspect-ratio: 16 / 9; background: #000; margin-top: 1.2em;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact */
.map { height: 250px; border-bottom: 1px solid var(--line); background: #eee; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form label { display: block; margin: 0 0 4px; font-size: 14px; }
.contact-form .field { margin-bottom: 16px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 9px 11px; border: 1px solid #ccc; border-radius: var(--radius); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--link); box-shadow: 0 0 0 2px rgba(54,123,183,.18);
}
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-block; font: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 26px; border: 1px solid var(--link); border-radius: var(--radius);
  background: var(--link); color: #fff; cursor: pointer;
}
.btn:hover, .btn:focus { background: var(--link-hover); border-color: var(--link-hover); }
.btn[disabled] { opacity: .6; cursor: wait; }

.notice { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; display: none; }
.notice.show { display: block; }
.notice--ok { background: #e9f6ec; border: 1px solid #b7e0c0; color: #1e5b2c; }
.notice--err { background: #fbeceb; border: 1px solid #efc2bf; color: #7a1f1a; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0; font-size: 13px; color: var(--muted); text-align: center;
}
.site-footer a { color: var(--muted); }

/* 404 */
.notfound { padding: 110px 0; text-align: center; }
