/*
Theme Name: Bloem Blocksy Child
Template: blocksy
Version: 1.0.0
Text Domain: bloem
*/

/* The presentation layer follows semantic Elementor classes emitted by the
 * page blueprints while Blocksy continues to own the header and footer. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
.ct-container-full,
.site-main,
.entry-content {
  background: var(--bloem-bg);
  color: var(--bloem-text);
}

.entry-content > .elementor,
.elementor > .e-con {
  background: transparent;
}

body.elementor-page .hero-section {
  display: none !important;
}

:where(
  .bloem-display .elementor-heading-title,
  .bloem-section-title .elementor-heading-title,
  .bloem-path-title .elementor-heading-title
) {
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Blocksy-native site chrome */
.ct-header {
  background: var(--bloem-bg);
  border-bottom: 1px solid var(--bloem-line-soft);
}

.ct-header [data-row] {
  background: var(--bloem-bg);
  border-bottom: 0;
}

.ct-header .ct-header-text,
.ct-header .ct-icon,
.ct-header .ct-icon-container {
  color: var(--bloem-text);
}

.ct-header .ct-header-menu > li > a {
  border-bottom: 2px solid transparent;
  color: var(--bloem-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: color 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.ct-header .ct-header-menu > li > a:hover {
  border-color: var(--bloem-line);
  color: var(--bloem-text);
}

.ct-header .ct-header-menu > li > a:active {
  border-color: var(--bloem-orange-muted);
  color: var(--bloem-orange-hot);
  opacity: .8;
}

.ct-header .ct-header-menu > .current-menu-item > a,
.ct-header .ct-header-menu > .current-menu-ancestor > a,
.ct-header .ct-header-menu > li > a[aria-current='page'] {
  border-color: var(--bloem-orange);
  color: var(--bloem-text);
}

.ct-header .ct-header-menu a:focus-visible,
.ct-header button:focus-visible,
.ct-header [role='button']:focus-visible {
  outline: 2px solid var(--bloem-orange);
  outline-offset: 4px;
}

.ct-footer {
  background: var(--bloem-surface);
  color: var(--bloem-muted);
  border-top: 1px solid var(--bloem-line);
}

.ct-footer [data-row] {
  background: var(--bloem-surface);
}

.ct-footer .ct-footer-copyright,
.ct-footer .ct-header-text {
  color: var(--bloem-muted);
  font-size: .83rem;
  letter-spacing: .025em;
}

.ct-footer a {
  color: var(--bloem-text);
  font-size: .83rem;
  letter-spacing: .035em;
  transition: color 220ms ease, opacity 220ms ease;
}

.ct-footer a:hover { color: var(--bloem-orange-hot); }
.ct-footer a:active { color: var(--bloem-orange); opacity: .72; }
.ct-footer a:focus-visible {
  outline: 2px solid var(--bloem-orange);
  outline-offset: 4px;
}

/* Shared editorial rhythm */
.elementor .e-con.bloem-section {
  position: relative;
  width: min(calc(100% - 48px), var(--bloem-content));
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.bloem-motion .bloem-reveal,
.bloem-motion .bloem-principle {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
}

.bloem-motion .bloem-reveal {
  transition: opacity 220ms ease, transform 220ms ease;
}

.bloem-motion .bloem-principle {
  transition: opacity 220ms ease var(--bloem-delay), transform 220ms ease var(--bloem-delay);
}

.bloem-motion .bloem-reveal.is-visible,
.bloem-motion .bloem-principles.is-visible .bloem-principle {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.bloem-section.bloem-reveal::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--bloem-line);
  transform: scaleX(1);
  transform-origin: left;
}

.bloem-motion .bloem-section.bloem-reveal::after {
  transform: scaleX(0);
  transition: transform 220ms ease;
}

.bloem-motion .bloem-section.bloem-reveal.is-line-visible::after {
  transform: scaleX(1);
}

.elementor .e-con.bloem-section > .elementor-widget,
.elementor .e-con.bloem-section > .e-con {
  min-width: 0;
  max-width: 100%;
}

.bloem-eyebrow,
.bloem-eyebrow .elementor-widget-container {
  margin: 0;
  color: var(--bloem-orange-hot);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bloem-display,
.bloem-display .elementor-heading-title {
  max-width: 14ch;
  margin: 0;
  color: var(--bloem-text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 5.4vw, 5.15rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .94 !important;
  overflow-wrap: normal;
  word-break: normal;
}

.bloem-deck,
.bloem-deck .elementor-widget-container {
  width: min(100%, 41rem);
  max-width: 41rem;
  margin: 0;
  color: var(--bloem-muted);
  font-size: clamp(1.08rem, 1.65vw, 1.32rem);
  line-height: 1.55;
  overflow-wrap: normal;
  word-break: normal;
}

.bloem-section-title,
.bloem-section-title .elementor-heading-title,
.bloem-path-title,
.bloem-path-title .elementor-heading-title {
  margin: 0;
  color: var(--bloem-text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}

.bloem-section-title,
.bloem-section-title .elementor-heading-title {
  font-size: clamp(2.25rem, 4vw, 4.25rem) !important;
}

.bloem-path-title,
.bloem-path-title .elementor-heading-title {
  max-width: 13ch;
  font-size: clamp(2rem, 3.2vw, 3.4rem) !important;
}

.bloem-copy,
.bloem-copy .elementor-widget-container {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  color: var(--bloem-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: normal;
}

.elementor .e-con.bloem-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.bloem-button .elementor-button,
.bloem-button.elementor-button,
.bloem-contact-form .ff-btn-submit {
  padding: .88rem 1.2rem;
  border: 1px solid var(--bloem-orange);
  border-radius: 0;
  background: var(--bloem-orange);
  color: var(--bloem-bg);
  box-shadow: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.2;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.bloem-button--secondary .elementor-button,
.bloem-button--secondary.elementor-button {
  border-color: var(--bloem-line);
  background: transparent;
  color: var(--bloem-text);
}

.bloem-button .elementor-button:hover,
.bloem-button.elementor-button:hover,
.bloem-contact-form .ff-btn-submit:hover {
  border-color: var(--bloem-orange-hot);
  background: var(--bloem-orange-hot);
  color: var(--bloem-bg);
  transform: translateY(-2px);
}

.bloem-button--secondary .elementor-button:hover,
.bloem-button--secondary.elementor-button:hover {
  border-color: var(--bloem-orange);
  background: var(--bloem-surface-raised);
  color: var(--bloem-text);
}

.bloem-button .elementor-button:active,
.bloem-button.elementor-button:active,
.bloem-contact-form .ff-btn-submit:active {
  border-color: var(--bloem-orange-muted);
  background: var(--bloem-orange-muted);
  opacity: .86;
  transform: translateY(0);
}

.bloem-button .elementor-button:focus-visible,
.bloem-button.elementor-button:focus-visible,
.bloem-contact-form .ff-btn-submit:focus-visible {
  outline: 2px solid var(--bloem-orange);
  outline-offset: 4px;
}

.entry-content a:not(.elementor-button) {
  color: var(--bloem-orange-hot);
  text-decoration-color: var(--bloem-orange-muted);
  text-underline-offset: .18em;
  transition: color 220ms ease, opacity 220ms ease;
}

.entry-content a:not(.elementor-button):hover { color: var(--bloem-text); }
.entry-content a:not(.elementor-button):active { color: var(--bloem-orange); opacity: .72; }
.entry-content a:not(.elementor-button):focus-visible {
  outline: 2px solid var(--bloem-orange);
  outline-offset: 4px;
}

/* Home hero: a compact dark stage that keeps the flower animation primary. */
.elementor .e-con.bloem-hero {
  min-height: clamp(28rem, 48vw, 36rem);
  justify-content: center;
  align-items: flex-start;
  gap: 1.4rem;
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--bloem-line);
  background:
    radial-gradient(circle at 82% 22%, rgba(233, 104, 36, .14), transparent 28rem),
    linear-gradient(130deg, var(--bloem-bg) 20%, var(--bloem-surface) 100%);
}

.elementor .e-con.bloem-hero--home {
  min-height: min(42rem, calc(100svh - 7rem));
  align-items: center;
  padding-block: clamp(3.25rem, 6vw, 5.5rem) clamp(4rem, 7vw, 6.5rem);
  background: radial-gradient(circle at 50% 34%, rgba(233, 104, 36, .09), transparent 20rem);
}

.elementor .e-con.bloem-hero-copy {
  min-width: 0;
  align-items: center;
  gap: .75rem;
  text-align: center;
}

.elementor .e-con.bloem-hero-visual {
  display: grid;
  place-items: center;
  width: clamp(11rem, 18vw, 16rem);
  margin-inline: auto;
}

.bloem-hero-flower,
.bloem-hero-flower .elementor-widget-container {
  width: 100%;
}

.bloem-hero-flower img {
  display: block;
  width: 100%;
  height: auto;
}

.bloem-hero--home .bloem-display .elementor-heading-title {
  max-width: 15ch;
  font-size: clamp(3rem, 5.2vw, 5rem) !important;
  text-wrap: balance;
}

.bloem-hero--home .bloem-display,
.bloem-hero--home .bloem-deck {
  margin-inline: auto;
}

.bloem-hero--home .bloem-actions {
  justify-content: center;
  margin-top: .4rem;
}

/* Asymmetric product paths replace the former equal card grid. */
.elementor .e-con.bloem-paths {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  gap: 0;
  padding-block: clamp(4rem, 7vw, 7rem);
  border-bottom: 1px solid var(--bloem-line);
}

.elementor .e-con.bloem-path,
.elementor .e-con.bloem-product-panel {
  min-width: 0;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 4rem);
}

.elementor .e-con.bloem-path--server {
  min-height: clamp(30rem, 40vw, 36rem);
  background: linear-gradient(145deg, var(--bloem-surface-raised), var(--bloem-surface) 72%);
}

.elementor .e-con.bloem-path--garden {
  min-height: clamp(24rem, 34vw, 30rem);
  align-self: end;
  border-block: 1px solid var(--bloem-line);
  border-right: 1px solid var(--bloem-line);
  background: linear-gradient(145deg, rgba(233, 104, 36, .09), var(--bloem-bg) 72%);
}

.bloem-path > .bloem-button {
  margin-top: .75rem;
}

/* Numbered principles use rules rather than card containers. */
.elementor .e-con.bloem-principles {
  border-bottom: 1px solid var(--bloem-line);
}

.elementor .e-con.bloem-principle-list {
  counter-reset: bloem-principle;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.bloem-principle {
  counter-increment: bloem-principle;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1.35rem 0 1.55rem;
  border-top: 1px solid var(--bloem-line);
  color: var(--bloem-text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.bloem-principle::before {
  content: counter(bloem-principle, decimal-leading-zero);
  color: var(--bloem-orange);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.9;
}

.bloem-principle .elementor-widget-container,
.bloem-principle p {
  margin: 0;
}

/* Focused studio note, compact inner-page lead, and editorial list. */
.elementor .e-con.bloem-studio-note {
  width: min(calc(100% - 48px), 54rem);
  align-items: flex-start;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.bloem-studio-note .bloem-section-title,
.bloem-studio-note .bloem-section-title .elementor-heading-title {
  max-width: 15ch;
}

.bloem-studio-note .bloem-copy,
.bloem-studio-note .bloem-copy .elementor-widget-container {
  max-width: 36rem;
}

.elementor .e-con.bloem-page-intro {
  min-height: auto;
  align-items: flex-start;
  gap: 1.25rem;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--bloem-line);
}

.bloem-page-intro .bloem-display,
.bloem-page-intro .bloem-display .elementor-heading-title {
  max-width: 13ch;
  font-size: clamp(3rem, 5.2vw, 5rem) !important;
}

.bloem-page-intro > .bloem-button {
  margin-top: .75rem;
}

.elementor .e-con.bloem-editorial-list {
  gap: 0;
  padding-block: clamp(2rem, 4vw, 4rem);
}

.elementor .e-con.bloem-editorial-item {
  display: grid;
  grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(2.75rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--bloem-line);
}

.bloem-editorial-item:last-child {
  border-bottom: 1px solid var(--bloem-line);
}

.bloem-editorial-item .bloem-section-title,
.bloem-editorial-item .bloem-section-title .elementor-heading-title {
  max-width: 14ch;
  font-size: clamp(2rem, 3.4vw, 3.4rem) !important;
}

.bloem-editorial-item .bloem-copy,
.bloem-editorial-item .bloem-copy .elementor-widget-container {
  max-width: 35rem;
  margin-top: .2rem;
}

.elementor .e-con.bloem-feature-chapters {
  gap: 0;
  padding-block: clamp(2rem, 4vw, 4rem);
}

.elementor .e-con.bloem-feature-chapter {
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(3.5rem, 7vw, 7rem);
  border-top: 1px solid var(--bloem-line);
}

.elementor .e-con.bloem-feature-chapter:last-child {
  border-bottom: 1px solid var(--bloem-line);
}

.bloem-feature-chapter > .bloem-section-title,
.bloem-feature-chapter > .bloem-section-title .elementor-heading-title {
  max-width: 15ch;
}

.elementor .e-con.bloem-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(1rem, 2vw, 2rem);
  border-top: 1px solid var(--bloem-line);
}

.elementor .e-con.bloem-feature-item {
  min-width: 0;
  align-content: start;
  gap: 1rem;
  padding: clamp(2rem, 3.5vw, 3.5rem) clamp(1.25rem, 2.5vw, 2.5rem);
}

.elementor .e-con.bloem-feature-item + .bloem-feature-item {
  border-left: 1px solid var(--bloem-line);
}

.bloem-feature-title,
.bloem-feature-title .elementor-heading-title {
  max-width: 17ch;
  color: var(--bloem-text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.45rem, 2vw, 2rem) !important;
  font-weight: 500;
  line-height: 1.08 !important;
  text-wrap: balance;
}

.bloem-feature-item .bloem-copy,
.bloem-feature-item .bloem-copy .elementor-widget-container {
  max-width: 34rem;
  color: var(--bloem-muted);
  font-size: clamp(.98rem, 1.15vw, 1.08rem);
  line-height: 1.72;
}

.elementor .e-con.bloem-closing {
  align-items: flex-start;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(2rem, 6vw, 6rem);
  border-block: 1px solid var(--bloem-line);
  background: linear-gradient(135deg, var(--bloem-surface-raised), var(--bloem-surface));
}

.bloem-closing .bloem-section-title,
.bloem-closing .bloem-section-title .elementor-heading-title {
  max-width: 16ch;
}

.bloem-status,
.bloem-support-note {
  display: inline-block;
  margin: 1.25rem 0 0;
  color: var(--bloem-orange-hot);
  font-size: .82rem;
  letter-spacing: .06em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Shop and contact states */
.elementor .e-con.bloem-shop-catalog,
.elementor .e-con.bloem-contact-form {
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.bloem-contact-form .fluentform {
  max-width: 50rem;
}

.bloem-contact-form .ff-el-group {
  margin-bottom: 1.3rem;
}

.bloem-contact-form .ff-el-input--label label {
  margin-bottom: .5rem;
  color: var(--bloem-text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.bloem-contact-form input,
.bloem-contact-form select,
.bloem-contact-form textarea {
  width: 100%;
  border: 1px solid var(--bloem-line);
  border-radius: 0;
  background: color-mix(in srgb, var(--bloem-surface-raised) 88%, var(--bloem-orange-muted));
  color: var(--bloem-text);
  box-shadow: none;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.bloem-contact-form input:hover,
.bloem-contact-form select:hover,
.bloem-contact-form textarea:hover {
  border-color: var(--bloem-muted);
  background: var(--bloem-surface-raised);
}

.bloem-contact-form input:active,
.bloem-contact-form select:active,
.bloem-contact-form textarea:active {
  border-color: var(--bloem-orange-muted);
}

.bloem-contact-form input:focus-visible,
.bloem-contact-form select:focus-visible,
.bloem-contact-form textarea:focus-visible {
  outline: 2px solid var(--bloem-orange);
  outline-offset: 2px;
  border-color: var(--bloem-orange);
  background: var(--bloem-surface-raised);
}

.bloem-contact-form .ff-el-is-error .ff-el-form-control {
  border-color: var(--bloem-orange-hot);
}

.bloem-contact-form .ff-el-is-error .text-danger,
.bloem-contact-form .error.text-danger {
  color: var(--bloem-orange-hot);
  font-size: .86rem;
}

@media (prefers-reduced-motion: reduce) {
  .bloem-motion .bloem-reveal,
  .bloem-motion .bloem-principle {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: none;
  }

  .bloem-motion .bloem-section.bloem-reveal::after {
    content: '';
    transform: scaleX(1);
    transition: none;
  }
}

@media (max-width: 767px) {
  .elementor .e-con.bloem-section,
  .elementor .e-con.bloem-studio-note {
    width: min(calc(100% - 32px), var(--bloem-content));
    min-height: auto;
    padding-block: 3.75rem;
  }

  .elementor .e-con.bloem-hero,
  .elementor .e-con.bloem-hero--home,
  .elementor .e-con.bloem-page-intro {
    min-height: auto;
  }

  .elementor .e-con.bloem-hero--home {
    gap: .75rem;
    padding-block: 2.75rem 3.5rem;
  }

  .elementor .e-con.bloem-hero-copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .elementor .e-con.bloem-hero-copy > .elementor-widget,
  .elementor .e-con.bloem-hero-copy > .e-con {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .elementor .e-con.bloem-hero-visual {
    width: min(46vw, 10.5rem);
    margin-inline: auto;
  }

  .bloem-display,
  .bloem-display .elementor-heading-title,
  .bloem-page-intro .bloem-display,
  .bloem-page-intro .bloem-display .elementor-heading-title,
  .bloem-hero--home .bloem-display .elementor-heading-title {
    max-width: 12ch;
    font-size: clamp(2.4rem, 10vw, 3rem) !important;
  }

  .bloem-hero--home .bloem-display .elementor-heading-title {
    width: min(100%, 15ch);
    min-width: 0;
    max-width: 100%;
    margin-inline: auto;
  }

  .bloem-hero--home .bloem-deck .elementor-widget-container {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-inline: auto;
  }

  .bloem-section-title,
  .bloem-section-title .elementor-heading-title,
  .bloem-path-title,
  .bloem-path-title .elementor-heading-title {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
  }

  .elementor .e-con.bloem-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .elementor .e-con.bloem-actions > .bloem-button {
    width: 100%;
    max-width: 100%;
  }

  .elementor .e-con.bloem-actions > .bloem-button .elementor-button {
    width: 100%;
  }

  .elementor .e-con.bloem-paths,
  .elementor .e-con.bloem-principle-list,
  .elementor .e-con.bloem-editorial-item,
  .elementor .e-con.bloem-feature-grid {
    grid-template-columns: 1fr;
  }

  .elementor .e-con.bloem-paths {
    padding-block: 3.75rem;
  }

  .elementor .e-con.bloem-path,
  .elementor .e-con.bloem-product-panel,
  .elementor .e-con.bloem-path--server,
  .elementor .e-con.bloem-path--garden {
    min-height: auto;
  }

  .elementor .e-con.bloem-path--garden {
    border-left: 1px solid var(--bloem-line);
  }

  .bloem-principle {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .elementor .e-con.bloem-editorial-item {
    gap: 1.35rem;
  }

  .elementor .e-con.bloem-feature-chapter {
    padding-block: 3.75rem;
  }

  .elementor .e-con.bloem-feature-item {
    padding: 2rem 0;
  }

  .elementor .e-con.bloem-feature-item + .bloem-feature-item {
    border-top: 1px solid var(--bloem-line);
    border-left: 0;
  }

  .elementor .e-con.bloem-closing {
    padding-inline: 1.5rem;
  }

  .ct-footer [data-row] {
    text-align: left;
  }
}
