/*
Theme Name: Flow Illustrator
Theme URI: https://www.flowillustrator.com/
Author: Flow Illustrator
Description: An accessible, responsive Gutenberg block theme for Flow Illustrator. Original content and images, refreshed for the WordPress Site Editor.
Version: 1.5.1
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flow-illustrator
Tags: full-site-editing, block-patterns, custom-logo, custom-colors, editor-style, wide-blocks, translation-ready
*/

/* Design tokens and translucent section margins live in theme.json and block attributes.
   The decorative background is a single non-interactive compositor animation. */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; }
body.flow-illustrator-site { isolation: isolate; }
body.flow-illustrator-site::before {
  content: "";
  position: fixed;
  inset: 0 -360px;
  z-index: -1;
  pointer-events: none;
  background: url("assets/images/flow-particles.svg") repeat;
  background-size: 360px 280px;
  animation: flow-illustrator-drift 30s linear infinite;
  will-change: transform;
}
body.flow-illustrator-blank { background: #fff; }
@keyframes flow-illustrator-drift {
  from { transform: translateX(-360px); }
  to { transform: translateX(0); }
}
body .wp-site-blocks { padding-top: 0; padding-bottom: 0; }
body .wp-site-blocks > * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
a, button, input[type="submit"] { -webkit-tap-highlight-color: transparent; }
a, .wp-element-button, button { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid #2d86cd; outline-offset: 5px; }
.wp-block-site-title { white-space: nowrap; }
.wp-block-site-logo img { display: block; }
header.wp-block-template-part { color: var(--wp--preset--color--base); }
header.wp-block-template-part > .wp-block-group { padding-block: 0; }
header.wp-block-template-part .wp-block-site-title a { color: var(--wp--preset--color--base); }
header.wp-block-template-part .wp-block-navigation-item__content { color: var(--wp--preset--color--base); }
header.wp-block-template-part .wp-block-search__button { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--contrast); }
header.wp-block-template-part .wp-block-search__button:hover { filter: brightness(.95); }
/* Core applies the overlay colour preset to submenus; give their own surface precedence. */
header.wp-block-template-part .wp-block-navigation .wp-block-navigation__submenu-container {
  background: var(--wp--preset--color--dropdown) !important;
  color: var(--wp--preset--color--navy);
  border: 1px solid #b5d5eb;
  border-top: 3px solid var(--wp--preset--color--primary);
  box-shadow: 0 14px 32px #002d5052;
  /* Keep the dropdown attached to its parent so pointer travel cannot close it. */
  margin-top: 0;
}
/* Allow diagonal pointer travel into the wider dropdown without leaving its parent. */
header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
header.wp-block-template-part .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  color: var(--wp--preset--color--navy);
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}
header.wp-block-template-part .wp-block-navigation__submenu-container .wp-block-navigation-item__content:is(:hover, :focus-visible),
header.wp-block-template-part .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
  background: var(--wp--preset--color--dropdown-hover);
  color: var(--wp--preset--color--navy);
}
header.wp-block-template-part .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible { outline: 2px solid var(--wp--preset--color--navy); outline-offset: -2px; }
header.wp-block-template-part .wp-block-navigation-item:has(> button[aria-expanded="true"]) > .wp-block-navigation-item__content { box-shadow: inset 0 -2px var(--wp--preset--color--primary); }
header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--base); }
header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  background: var(--wp--preset--color--dropdown) !important;
  color: var(--wp--preset--color--navy);
  border: 1px solid #b5d5eb;
  border-top: 3px solid var(--wp--preset--color--primary) !important;
  border-radius: 0;
  box-shadow: none;
  padding: 6px;
  margin: 8px 0 16px;
  min-width: 0;
  width: 100%;
}
header .wp-block-navigation-item__content { padding-block: 12px; }
.wp-block-navigation .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--border); border-radius: 0; padding: 8px; box-shadow: 0 12px 32px #132f3514; min-width: 240px; }
.wp-block-navigation .wp-block-navigation__submenu-container a { padding: 10px 12px; border-radius: 0; }
.wp-block-navigation .wp-block-navigation__submenu-container a:hover { background-color: var(--wp--preset--color--surface); }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 1px; }
.wp-block-button > .wp-block-button__link:hover { filter: brightness(.95); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { color: var(--wp--preset--color--base); background: var(--wp--preset--color--contrast); }
.wp-block-image img { vertical-align: middle; }
.wp-block-image:has(a) a { display: block; }
#flow-home-hero > * { margin-block: 0; }
#flow-home-hero { overflow: hidden; }
#flow-hero-intro h1 { text-wrap: balance; }
#flow-home-gallery .wp-block-image img,
.flow-gallery-page .wp-block-image img { border: 1px solid var(--wp--preset--color--base); }
#flow-hero-carousel { position: relative; }
#flow-hero-window { overflow: hidden; height: clamp(180px, 26.042vw, 313px); }
#flow-hero-slides { display: flex; flex-wrap: nowrap; gap: 0; width: 100%; height: 100%; transition: transform 450ms ease; }
#flow-hero-slides > [id^="flow-hero-slide-"] { flex: 0 0 100%; width: 100%; min-width: 0; height: 100%; margin: 0; }
#flow-hero-slides .wp-block-image,
#flow-hero-slides .wp-block-embed,
#flow-hero-slides .wp-block-embed__wrapper { width: 100%; height: 100%; margin: 0; }
#flow-hero-slides .wp-block-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
#flow-hero-slides .wp-block-embed__wrapper::before { display: none; }
#flow-hero-slides iframe { position: static; width: 100%; height: 100%; aspect-ratio: auto; }
#flow-hero-controls { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#flow-hero-controls .wp-block-buttons { display: contents; }
#flow-hero-controls .flow-slider-control { position: absolute; margin: 0; pointer-events: auto; }
#flow-hero-controls .flow-slider-control-previous { left: 16px; top: 50%; transform: translateY(-50%); }
#flow-hero-controls .flow-slider-control-next { right: 16px; top: 50%; transform: translateY(-50%); }
#flow-hero-controls .flow-slider-control-toggle { right: 16px; top: 16px; }
#flow-hero-controls .wp-block-button__link { width: 48px; min-width: 48px; height: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 0; line-height: 0; background: transparent; color: var(--wp--preset--color--primary); border: 0; box-shadow: none; cursor: pointer; }
#flow-hero-controls .wp-block-button__link::before { content: ""; display: block; width: 24px; height: 24px; background: currentColor; mask: var(--flow-control-icon) center / contain no-repeat; filter: drop-shadow(0 1px 1px #001b2e99); }
#flow-hero-controls .flow-slider-control-previous { --flow-control-icon: url("assets/icons/caret-left.svg"); }
#flow-hero-controls .flow-slider-control-next { --flow-control-icon: url("assets/icons/caret-right.svg"); }
#flow-hero-controls .flow-slider-control-toggle { --flow-control-icon: url("assets/icons/play.svg"); }
#flow-hero-controls .flow-slider-control-toggle .is-playing { --flow-control-icon: url("assets/icons/pause.svg"); }
#flow-hero-controls .wp-block-button__link:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
#flow-hero-status { position: absolute; left: 16px; bottom: 16px; margin: 0; padding: 4px 10px; min-width: 52px; background: transparent; color: var(--wp--preset--color--primary); text-shadow: 0 1px 1px #001b2e; text-align: center; font-variant-numeric: tabular-nums; }
.wp-block-post-content > .wp-block-image { margin-block: var(--wp--preset--spacing--40); }
.wp-block-post-content > .wp-block-image img { max-height: 620px; width: auto; object-fit: contain; }
.wp-block-post-content :where(p, li) { overflow-wrap: anywhere; }
.wp-block-post-content > h2 { margin-block-start: var(--wp--preset--spacing--60); }
.wp-block-post-content > h3 { margin-block-start: var(--wp--preset--spacing--50); }
.wp-block-embed { margin-inline: 0; }
.wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 0; }
.wp-block-separator { border: 0; border-top: 1px solid currentColor; opacity: 0.25; }
footer.wp-block-template-part { font-size: 0.875rem; }
footer.wp-block-template-part h3 { letter-spacing: -0.015em; }
footer.wp-block-template-part a { color: inherit; text-underline-offset: 4px; }
footer.wp-block-template-part .wp-element-button { color: var(--wp--preset--color--contrast); }
footer.wp-block-template-part p { opacity: 0.88; }
footer.wp-block-template-part ul { padding-inline-start: 18px; }
.wpcf7 label { display: block; font-size: 0.9rem; font-weight: 500; }
.wpcf7 :where(input:not([type="submit"]),textarea) { width: 100%; border: 1px solid var(--wp--preset--color--border); border-radius: 0; padding: 12px 14px; background: var(--wp--preset--color--base); margin-top: 8px; color: var(--wp--preset--color--contrast); }
.wpcf7 input[type="submit"] { border: 0; border-radius: 0; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--contrast); padding: 14px 26px; cursor: pointer; }
.wpcf7 textarea { min-height: 160px; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--wp--preset--color--border); padding: 12px; }
[data-flow-tool] { border: 1px solid var(--wp--preset--color--border); border-radius: 0; padding: 24px; line-height: 2.5; }
[data-flow-tool] input[type="number"] { width: 110px; max-width: 100%; padding: 6px 8px; border: 1px solid var(--wp--preset--color--border); border-radius: 0; color: var(--wp--preset--color--contrast); }
[data-flow-tool] input[readonly] { background: var(--wp--preset--color--surface); }
[data-flow-tool] input[type="button"] { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--contrast); border: 0; border-radius: 0; padding: 10px 18px; margin-block: 12px; cursor: pointer; }
[data-flow-tool] img { display: block; margin-block: 24px; }
[data-flow-tool] hr { border: 0; border-top: 1px solid var(--wp--preset--color--border); margin-block: 32px; }
[data-flow-graph] { margin-block: 24px; }
@media (max-width: 1200px) {
  .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default) { display: none; }
  .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; width: 100%; gap: 8px; }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.1rem; padding: 4px; }
}
@media (max-width: 781px) {
  :root { --wp--preset--spacing--70: 64px; --wp--preset--spacing--60: 40px; --wp--preset--spacing--50: 28px; }
  .wp-block-columns { gap: 28px; }
  .wp-block-column { min-width: 0; }
  .wp-block-buttons { gap: 12px; }
  .wp-block-button { max-width: 100%; }
  .wp-block-button__link { white-space: normal; }
  .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100%; }
  footer.wp-block-template-part .wp-block-columns { gap: 32px; }
  #flow-hero-controls .wp-block-button__link { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  #flow-hero-controls .flow-slider-control-previous { left: 8px; }
  #flow-hero-controls .flow-slider-control-next,
  #flow-hero-controls .flow-slider-control-toggle { right: 8px; }
  #flow-hero-controls .flow-slider-control-toggle { top: 8px; }
  #flow-hero-status { left: 8px; bottom: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.flow-illustrator-site::before { animation: none !important; transform: none; will-change: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

