/*
Theme Name: Visual Thinkery Sense-making
Theme URI: https://visualthinkery.com
Description: Sense-making redesign of visualthinkery.com — child theme of Twenty Twenty-Five.
Author: Visual Thinkery
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: vt-sensemaking
*/

/* ---------- Framed artwork ---------- */
.vt-frame img,
img.vt-frame {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(28,27,24,.06), 0 8px 24px -8px rgba(28,27,24,.12);
  padding: 12px;
  transition: box-shadow 250ms cubic-bezier(.2,.7,.3,1), transform 250ms cubic-bezier(.2,.7,.3,1);
}
.vt-frame:hover img,
a:hover > img.vt-frame {
  box-shadow: 0 2px 4px rgba(28,27,24,.08), 0 16px 32px -12px rgba(28,27,24,.18);
  transform: translateY(-3px);
}

/* ---------- Badges & kickers ---------- */
.vt-badge {
  display: table; /* shrink-wraps to its text even as a paragraph block */
  width: fit-content;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #faf8f3;
}
.vt-badge--teal { background: #3f9aa1; }
/* Constrained layouts auto-centre narrow children — keep pills on the left
   unless explicitly centre-aligned in the editor. */
.is-layout-constrained > p.vt-badge:not(.has-text-align-center) {
  margin-left: 0 !important;
  margin-right: auto !important;
}
p.vt-badge.has-text-align-center { margin-left: auto !important; margin-right: auto !important; }
/* Category pills are always teal — coral is reserved for clickable elements. */
.vt-tagline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a8578;
}
.vt-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a8578;
  text-align: center;
}

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link {
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 200ms cubic-bezier(.2,.7,.3,1), background 200ms;
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-vt-accent .wp-block-button__link { background: #e2551f; color: #faf8f3; }
.is-style-vt-accent .wp-block-button__link:hover { background: #a53b12; }
.is-style-vt-primary .wp-block-button__link { background: #1c1b18; color: #faf8f3; }
.is-style-vt-ghost .wp-block-button__link {
  background: transparent; color: #1c1b18;
  border: 1.5px solid #c9c2b0;
}
.is-style-vt-ghost .wp-block-button__link:hover { border-color: #1c1b18; }

/* ---------- Hero carousel ---------- */
.vt-carousel { position: relative; }
.vt-carousel-track {
  display: flex;
  overflow: hidden;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(28,27,24,.06), 0 8px 24px -8px rgba(28,27,24,.12);
  padding: 0; /* padding lives on the slides, so overflow clips flush with the card edge */
}
.vt-carousel-track > figure {
  flex: 0 0 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px;
  transition: transform 450ms cubic-bezier(.2,.7,.3,1);
}
.vt-carousel-track img { width: 100%; height: auto; display: block; }
.vt-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #ffffff; border: 1px solid #e2ddd0;
  box-shadow: 0 2px 6px rgba(28,27,24,.12);
  cursor: pointer; font-size: 18px; line-height: 1; color: #1c1b18;
  z-index: 2;
}
.vt-carousel-arrow--prev { left: -22px; }
.vt-carousel-arrow--next { right: -22px; }
.vt-carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.vt-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e2ddd0; border: 0; padding: 0; cursor: pointer;
}
.vt-carousel-dot.is-active { background: #1c1b18; }

/* ---------- Gallery filters + masonry ---------- */
.vt-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.vt-filter {
  border-radius: 999px; padding: 8px 20px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: transparent; border: 1px solid #e2ddd0; color: #1c1b18;
  transition: all 200ms cubic-bezier(.2,.7,.3,1);
}
.vt-filter.is-active { background: #1c1b18; color: #faf8f3; border-color: #1c1b18; }
.vt-masonry { columns: 3; column-gap: 40px; }
@media (max-width: 900px) { .vt-masonry { columns: 2; } }
@media (max-width: 600px) { .vt-masonry { columns: 1; } }
.vt-masonry > figure {
  break-inside: avoid; margin: 0 0 40px; cursor: zoom-in;
}
.vt-masonry img {
  border-radius: 6px;
  transition: transform 250ms cubic-bezier(.2,.7,.3,1), box-shadow 250ms cubic-bezier(.2,.7,.3,1);
}
.vt-masonry > figure:hover img {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(28,27,24,.18);
}
.vt-masonry figcaption {
  font-size: 13px; color: #8a8578; margin-top: 8px; text-align: left;
}
.vt-masonry figcaption strong { color: #1c1b18; font-weight: 600; }
.vt-item-hidden { display: none; }

/* ---------- Lightbox ---------- */
.vt-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(28,27,24,.88);
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
}
.vt-lightbox[hidden] { display: none; }
.vt-lightbox img {
  max-width: min(1100px, 90vw); max-height: 78vh;
  background: #fff; border-radius: 8px; padding: 12px;
}
.vt-lightbox-caption { color: #faf8f3; text-align: center; margin-top: 14px; font-size: 15px; }
.vt-lightbox-caption span { color: #c9c2b0; }
.vt-lightbox button {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: #ffffff; border: 0; cursor: pointer; font-size: 18px; color: #1c1b18;
}
.vt-lightbox .vt-lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.vt-lightbox .vt-lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.vt-lightbox .vt-lb-close { right: 24px; top: 24px; }

/* ---------- Contact form ---------- */
.vt-form-card {
  background: #ffffff; border-radius: 14px; padding: 40px;
  box-shadow: 0 1px 2px rgba(28,27,24,.06), 0 8px 24px -8px rgba(28,27,24,.12);
}
.vt-form label { display: block; font-size: 14px; font-weight: 600; margin: 18px 0 6px; color: #1c1b18; }
.vt-form input, .vt-form textarea {
  width: 100%; border: 1.5px solid #e2ddd0; border-radius: 4px;
  background: #faf8f3; padding: 12px 14px; font: inherit; color: #1c1b18;
}
.vt-form input:focus, .vt-form textarea:focus { outline: none; border-color: #1c1b18; }
.vt-form ::placeholder { color: #8a8578; }
.vt-form-submit-row { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.vt-form-submit {
  border: 0; border-radius: 999px; background: #e2551f; color: #faf8f3;
  font-weight: 600; font-size: 16px; padding: 14px 30px; cursor: pointer;
  transition: background 200ms, transform 200ms;
}
.vt-form-submit:hover { background: #a53b12; transform: translateY(-1px); }
.vt-form-note { color: #8a8578; font-size: 14px; }

/* ---------- Contact Form 7 (inside the form card) ---------- */
.vt-form-card .wpcf7 { max-width: 100%; }
.vt-form-card .wpcf7-form p { margin: 0 0 18px; }
.vt-form-card .wpcf7-form label {
  display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #1c1b18;
}
.vt-form-card .wpcf7-form-control-wrap { display: block; width: 100%; }
.vt-form-card .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.vt-form-card .wpcf7-form textarea,
.vt-form-card .wpcf7-form select {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid #e2ddd0; border-radius: 4px;
  background: #faf8f3; padding: 12px 14px; font: inherit; color: #1c1b18;
}
.vt-form-card .wpcf7-form input:focus,
.vt-form-card .wpcf7-form textarea:focus { outline: none; border-color: #1c1b18; }
.vt-form-card .wpcf7-form ::placeholder { color: #8a8578; }
.vt-form-card .wpcf7-form input[type="submit"] {
  border: 0; border-radius: 999px; background: #e2551f; color: #faf8f3;
  font-weight: 600; font-size: 16px; padding: 14px 30px; cursor: pointer;
  transition: background 200ms, transform 200ms;
}
.vt-form-card .wpcf7-form input[type="submit"]:hover { background: #a53b12; transform: translateY(-1px); }
.vt-form-card .wpcf7-response-output {
  margin: 16px 0 0; padding: 10px 14px; border-radius: 6px; border-color: #e2ddd0;
}
.vt-form-card .wpcf7-not-valid-tip { color: #a53b12; font-size: 13px; margin-top: 4px; }

/* ---------- Client logo wall (Spectra gallery) ---------- */
.wp-block-uagb-image-gallery img {
  filter: grayscale(1); opacity: .75;
  transition: filter 250ms, opacity 250ms;
}
.wp-block-uagb-image-gallery img:hover { filter: none; opacity: 1; }

/* Plain rounded image — no card frame. */
.vt-plain img { border-radius: 6px; display: block; }

/* ---------- Layout: no stray gaps around page content ---------- */
main.wp-block-group > .entry-content,
main.wp-block-group > .wp-block-post-content {
  margin-block-start: 0;
  margin-block-end: 0;
}
.wp-block-post-content > :last-child { margin-bottom: 0; }
.wp-block-post-content > :first-child { margin-top: 0; }
.wp-site-blocks > footer,
.wp-site-blocks > main { margin-block-start: 0; }

/* ---------- Misc ---------- */
.vt-circle img { border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
.vt-logo-wall img { filter: grayscale(1); opacity: .85; }
.vt-process-numeral {
  font-family: "BrysoZine", cursive;
  font-size: 56px; color: #e2551f; line-height: 1;
}
.vt-pullquote { color: #1c1b18; } /* default ink; overridden by the block's own colour settings */
.vt-pullquote p,
p.vt-pullquote {
  font-family: "BrysoZine", cursive;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.3; color: inherit;
}
.vt-pullquote cite {
  font-family: "Work Sans", sans-serif; font-size: 15px;
  color: inherit; opacity: .65; font-style: normal;
}
