/* ------------------------------------------------------------------ *
 * site.css — Refresh additions on top of the ported Webflow styles.
 * Replaces jQuery/Webflow.js behaviour with native CSS + tiny vanilla JS
 * and supplies assets missing from the Webflow export (logo, footer icons).
 * ------------------------------------------------------------------ */

:root {
  --cm-navy: #070a50;
  --cm-navy-badge: #030324;
  --cm-slate: #3b3e47;
  --cm-slate-footer: #3d4147;
}

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

img { max-width: 100%; }

a { transition: color .2s ease, opacity .2s ease; }

:focus-visible {
  outline: 3px solid #2532a8;
  outline-offset: 2px;
}

/* --- Logo (CanvasManLogo.webp recovered from the Webflow CDN) ---
 * Landscape mark (~600x400). Cap the width and let height follow the
 * intrinsic aspect ratio so it can never stretch or oversize, matching the
 * compact logo on www.canvasmantopeka.com. object-fit:contain is a belt-and-
 * suspenders guard against any inherited fixed-box sizing. */
.logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 150px;
  margin: 0 auto;
  object-fit: contain;
}
@media screen and (max-width: 767px) {
  .logo-img { max-width: 120px; }
}

/* --- Legacy wordmark fallback (retained, no longer rendered) --- */
.logo-wordmark {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}
.logo-wordmark .lw-top {
  display: block;
  font-family: 'Changa One', Impact, sans-serif;
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--cm-navy);
  text-transform: uppercase;
}
.logo-wordmark .lw-sub {
  display: block;
  margin-top: 4px;
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cm-slate);
}

/* --- Hamburger (mobile) --- */
.menu-button { cursor: pointer; }
.hamburger-icon { width: 26px; height: 26px; display: block; }
@media screen and (min-width: 768px) {
  .menu-button { display: none; }
}
@media screen and (max-width: 767px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--cm-slate);
    z-index: 50;
  }
  .navbar.nav-open .nav-menu { display: block; }
}

/* --- Native hero slider (replaces w-slider + webflow.js) --- */
.slider { position: relative; }
.slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease-in-out;
  pointer-events: none;
}
.slider .slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.slider .slide:first-child { position: relative; } /* reserves height */
.slider .slide:first-child.is-active { position: absolute; }
/* Keep first slide absolute once JS runs; before JS, first slide shows as fallback */
.slider.js-ready .slide:first-child { position: absolute; }
.slider.js-ready .slide.is-active { position: absolute; }

/* --- Footer icons as inline SVG (Icon-compass/Icon-phone/facebook were missing) --- */
.footer-icon-svg {
  width: 52px;
  height: 52px;
  opacity: .5;
  fill: #d6daff;
  display: block;
  margin-bottom: 13px;
}
.link-block .footer-icon-svg {
  width: 26px;
  height: 26px;
  opacity: .75;
  margin: 5px 0 15px;
}
@media screen and (max-width: 991px) {
  .footer-icon-svg { width: 34px; height: 34px; margin: 0 auto 15px; }
}

/* --- Contact form (Formspree) --- */
.contact-form {
  max-width: 560px;
  margin: 24px auto 0;
  text-align: left;
}
.contact-form .cf-row { margin-bottom: 14px; }
.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--cm-slate);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  border: 1px solid #c9ccd4;
  border-radius: 6px;
  background: #fff;
  color: #2b2b2b;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2532a8;
  outline: none;
  box-shadow: 0 0 0 3px #2532a826;
}
.contact-form .cf-submit {
  appearance: none;
  cursor: pointer;
  color: #fff;
  background: var(--cm-navy);
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .3s ease;
}
.contact-form .cf-submit:hover { background: #2532a8; }
.cf-note {
  margin-top: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: #777;
  text-align: center;
}

/* --- Gallery grid + lightbox (replaces w-lightbox + webflow.js) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 10px 0 30px;
}
.gallery-grid .g-item {
  margin: 0;
  padding: 0;
  border: none;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 500 / 425;
}
.gallery-grid .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .3s ease;
}
.gallery-grid .g-item:hover img { transform: scale(1.05); opacity: .9; }
@media screen and (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media screen and (max-width: 479px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: #000000ee;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  box-shadow: 0 20px 60px #0009;
  border-radius: 4px;
}
.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  background: #ffffff1a;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover { background: #ffffff33; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --- Facebook video embed (gallery) --- */
.fb-video-embed {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
}
.fb-video-embed iframe { max-width: 100%; }

/* --- A11y helper --- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #070a50;
  padding: 10px 16px;
  z-index: 2000;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }
