/* Shared primitives use the theme.json design tokens in both editor and frontend. */
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: var(--wp--preset--spacing--50);
}
body {
  margin: 0;
}
:root body,
.editor-styles-wrapper {
  --fimijo-site-gutter: max(20px, calc((100vw - 1280px) / 2));
  --wp--style--global--wide-size: calc(
    100vw - var(--fimijo-site-gutter) - var(--fimijo-site-gutter)
  );
  --wp--style--root--padding-left: var(--fimijo-site-gutter);
  --wp--style--root--padding-right: var(--fimijo-site-gutter);
}
@media (min-width: 1440px) {
  :root body,
  .editor-styles-wrapper {
    --fimijo-site-gutter: max(120px, calc((100vw - 1440px) / 2));
  }
}
img {
  max-width: 100%;
  height: auto;
}
footer {
  margin-top: 0;
  padding-bottom: 40px;
  padding-top: 40px;
}
a {
  text-underline-offset: 3px;
}
.wp-block-group {
  margin: 0;
}
a:hover {
  text-decoration-thickness: 2px;
}
:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 3px solid var(--wp--preset--color--forest);
  outline-offset: 4px;
}
.fimijo-header > .wp-block-group {
  padding: 12px 24px;
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--paper);
  box-shadow: var(--wp--custom--shadow--soft);
  min-height: 68px;
}
.fimijo-footer > .wp-block-group {
  max-width: none;
  padding: 12px 24px;
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
  min-height: 68px;
}
.fimijo-footer :where(.wp-block-site-title, a),
.fimijo-footer .fimijo-menu a {
  color: var(--wp--preset--color--paper);
}
.fimijo-footer a:focus-visible {
  outline-color: var(--wp--preset--color--paper);
}
.wp-block-group.fimijo-header,
.wp-block-group.fimijo-footer {
  padding-inline: var(--fimijo-site-gutter);
}
.fimijo-header > .wp-block-group {
  max-width: none;
}
.fimijo-footer > .fimijo-footer-shell {
  padding: 24px 32px;
  border-radius: var(--wp--custom--radius--panel);
}
.fimijo-footer .fimijo-footer-main {
  gap: var(--wp--preset--spacing--30);
}
.fimijo-footer .fimijo-footer-bottom {
  gap: 12px var(--wp--preset--spacing--30);
  margin-block-start: 20px;
  padding-block-start: 20px;
  border-top: 1px solid var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
}
.fimijo-footer .fimijo-copyright {
  margin: 0;
}
.fimijo-footer .fimijo-footer-socials {
  gap: 8px;
  margin: 0;
  font-size: 24px;
}
.fimijo-footer .fimijo-footer-socials .wp-social-link {
  background: transparent;
  color: var(--wp--preset--color--paper);
}
.fimijo-footer .fimijo-footer-socials .wp-social-link a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--wp--custom--radius--pill);
}
.fimijo-footer .fimijo-footer-socials .wp-social-link a:hover {
  background: var(--wp--preset--color--muted);
}
.fimijo-footer .fimijo-footer-socials .wp-social-link-tiktok svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 781px) {
  .fimijo-footer > .fimijo-footer-shell {
    padding: 24px;
  }
  .fimijo-footer .fimijo-footer-main,
  .fimijo-footer .fimijo-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
.fimijo-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--30);
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.fimijo-menu a {
  display: inline-block;
  padding-block: 10px;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}
.fimijo-menu a:hover {
  color: var(--wp--preset--color--accent);
}
.fimijo-languages a[aria-current] {
  font-weight: 700;
}
.fimijo-section {
  padding: var(--wp--preset--spacing--60) 0;
  margin: 0;
}
.fimijo-section-inner {
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--fimijo-site-gutter);
}
.container {
  padding-inline: var(--fimijo-site-gutter);
}
.left-padding-res {
  padding-left: var(--fimijo-site-gutter);
}
.right-padding-res {
  padding-right: var(--fimijo-site-gutter);
}
.fimijo-section :where(h1, h2, h3, h4, h5, h6) {
  margin: 0 0 var(--wp--preset--spacing--30);
}
.fimijo-intro {
  max-width: 640px;
  font-size: var(--wp--preset--font-size--medium);
  line-height: var(--wp--custom--line-height--body);
  white-space: pre-line;
}
.has-small-font-size {
  line-height: var(--wp--custom--line-height--small);
}
.has-caption-font-size {
  line-height: var(--wp--custom--line-height--caption);
}
.fimijo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--mist);
  color: var(--wp--preset--color--ink);
  font-size: var(--wp--preset--font-size--small);
  line-height: var(--wp--custom--line-height--small);
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 var(--wp--preset--spacing--30);
}
.fimijo-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--accent);
}
.fimijo-split {
  display: grid;
  gap: var(--wp--preset--spacing--50);
  align-items: center;
}
.fimijo-split > *,
.fimijo-grid > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.fimijo-app-links {
  display: flex;
  gap: var(--wp--preset--spacing--20);
  flex-wrap: wrap;
  margin-block-start: var(--wp--preset--spacing--40);
}
.fimijo-app-links:empty {
  display: none;
}
.fimijo-button,
.wp-element-button,
.wp-block-button__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--wp--custom--button--gap);
  padding: var(--wp--custom--button--padding-y)
    var(--wp--custom--button--padding-x);
  background-color: var(--wp--preset--color--accent);
  background-image: var(--wp--preset--gradient--brand-cta);
  color: var(--wp--preset--color--paper);
  border: 0;
  border-radius: var(--wp--custom--button--radius);
  font-family: var(--wp--preset--font-family--wix-madefor-text);
  font-style: normal;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  min-height: 48px;
  text-align: center;
  text-decoration: none;
}
.fimijo-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
  color: var(--wp--preset--color--paper);
  text-decoration: none;
}
.fimijo-button-motion {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.fimijo-button-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.fimijo-placeholder-link {
  opacity: 0.7;
}
.fimijo-image {
  display: block;
  width: 100%;
  border-radius: var(--wp--custom--radius--inner);
}
.fimijo-image-placeholder {
  min-height: 240px;
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--wp--preset--color--sage);
  border-radius: var(--wp--custom--radius--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--wp--preset--spacing--20);
  padding: var(--wp--preset--spacing--40);
  color: var(--wp--preset--color--muted);
  background: var(--wp--preset--color--mist);
}
.fimijo-image-placeholder small {
  max-width: 240px;
}
.fimijo-grid {
  display: grid;
  gap: var(--wp--preset--spacing--30);
  margin-block-start: var(--wp--preset--spacing--50);
}
.fimijo-card {
  padding: var(--wp--preset--spacing--40);
  border: 0;
  border-radius: var(--wp--custom--radius--card);
  background: var(--wp--preset--gradient--card-slate);
  color: var(--wp--preset--color--ink);
}
.fimijo-card :where(h2, h3, h4, h5, h6),
.fimijo-card .wp-block-post-title {
  font-size: var(--wp--preset--font-size--heading-5);
  line-height: var(--wp--custom--line-height--h-5);
}
.fimijo-card p {
  margin-block-end: 0;
  white-space: pre-line;
}
.fimijo-card .wp-block-post-featured-image img {
  border-radius: var(--wp--custom--radius--inner);
}
.fimijo-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fimijo-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-block-end: 24px;
  border-radius: var(--wp--custom--radius--inner);
  color: var(--wp--preset--color--accent);
  background: var(--wp--preset--color--paper);
  box-shadow: var(--wp--custom--shadow--soft);
}
.fimijo-mockup {
  margin: 0;
}
.fimijo-mockup-frame {
  display: block;
  width: 100%;
  max-width: 290px;
  margin-inline: auto;
  overflow: hidden;
}
.fimijo-mockup-frame .fimijo-image {
  width: 100%;
  aspect-ratio: 393 / 852;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
}
.fimijo-placeholder-note {
  font-size: var(--wp--preset--font-size--small);
  padding: var(--wp--preset--spacing--20);
  border-inline-start: 3px solid var(--wp--preset--color--forest);
}
.fimijo-intro[data-acf-inline-contenteditable]:empty::before {
  content: attr(data-acf-placeholder);
  color: var(--wp--preset--color--muted);
}
.wp-block-post-template {
  gap: var(--wp--preset--spacing--40);
}
.wp-block-post-content {
  overflow-wrap: break-word;
}
@media (min-width: 782px) {
  :root body,
  .editor-styles-wrapper {
    --wp--preset--spacing--40: 32px;
    --wp--preset--spacing--50: 40px;
    --wp--preset--spacing--60: 80px;
  }
  .fimijo-split {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--wp--preset--spacing--60);
  }
  .fimijo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.fimijo-header {
  position: relative;
  z-index: 20;
}
.fimijo-header > .wp-block-group {
  position: relative;
}
.fimijo-menu-toggle {
  display: none;
}
/* Shortcode formatting can insert an empty paragraph between the toggle and list. */
.fimijo-primary-navigation > p:empty {
  display: none;
}
@media (max-width: 781px) {
  :root body,
  .editor-styles-wrapper {
    --wp--preset--font-size--display: var(--wp--custom--mobile--display);
    --wp--preset--font-size--x-large: var(--wp--custom--mobile--section);
    --wp--preset--font-size--large: var(--wp--custom--mobile--card);
    --wp--preset--font-size--heading-4: var(--wp--custom--mobile--card);
    --wp--preset--font-size--heading-5: var(--wp--custom--mobile--small);
    --wp--preset--font-size--heading-6: var(--wp--custom--mobile--small);
    --wp--custom--line-height--h-1: var(
      --wp--custom--mobile--line-height--display
    );
    --wp--custom--line-height--h-2: var(
      --wp--custom--mobile--line-height--section
    );
    --wp--custom--line-height--h-3: var(
      --wp--custom--mobile--line-height--card
    );
    --wp--custom--line-height--h-4: var(
      --wp--custom--mobile--line-height--card
    );
    --wp--custom--line-height--h-5: var(
      --wp--custom--mobile--line-height--small
    );
    --wp--custom--line-height--h-6: var(
      --wp--custom--mobile--line-height--small
    );
  }
  .fimijo-card :where(h2, h3, h4, h5, h6),
  .fimijo-card .wp-block-post-title {
    font-size: var(--wp--preset--font-size--large);
    line-height: var(--wp--custom--line-height--h-3);
  }
  /* Keep mobile body copy uniform, including WordPress font-size utility classes. */
  body p,
  .editor-styles-wrapper p {
    font-size: var(--wp--preset--font-size--normal) !important;
    line-height: var(--wp--custom--line-height--body) !important;
  }
  .fimijo-button,
  .wp-element-button,
  .wp-block-button__link,
  .fimijo-hero .fimijo-phone-toggle {
    font-size: var(--wp--preset--font-size--normal);
    line-height: var(--wp--custom--line-height--body);
    padding: var(--wp--custom--button--padding-y)
      var(--wp--custom--button--padding-x);
    min-height: 48px;
  }
  .fimijo-header > .wp-block-group {
    align-items: center;
    padding-inline: 20px;
  }
  .fimijo-primary-navigation.fimijo-menu-enhanced {
    display: flex;
    align-items: center;
  }
  .fimijo-menu-toggle:not([hidden]) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: var(--wp--custom--radius--pill);
    background: transparent;
    color: var(--wp--preset--color--ink);
    cursor: pointer;
  }
  .fimijo-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }
  .fimijo-menu-open .fimijo-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .fimijo-menu-open .fimijo-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .fimijo-menu-open .fimijo-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .fimijo-primary-navigation.fimijo-menu-enhanced > .fimijo-menu {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 8px);
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 24px;
    border-radius: var(--wp--custom--radius--inner);
    background: var(--wp--preset--color--paper);
    box-shadow: var(--wp--custom--shadow--soft);
  }
  .fimijo-primary-navigation.fimijo-menu-open > .fimijo-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    animation: fimijo-menu-reveal 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .fimijo-primary-navigation.fimijo-menu-enhanced .fimijo-menu a {
    display: block;
    min-height: 44px;
    padding-block: 10px;
    overflow-wrap: anywhere;
  }
  .fimijo-mockup-frame .fimijo-image {
      object-fit: cover !important;
      object-position: top !important;
  }
}
@keyframes fimijo-menu-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
