/* Viora brand overrides — placed in the "overrides" cascade layer so it
   wins over section defaults regardless of load order. */
@layer overrides {

  /* Hero slides with no image yet: force a true solid-black background
     behind the white headline (the theme's placeholder fallback only
     applies a translucent tint, which reads as grey, not black). */
  [ui-section=slideshow] [data-intensity=as-solid-bg] .media,
  [ui-section=slideshow] [data-intensity=as-solid-bg] .media ui-image-fallback{
    background-color: #0A0A0A !important;
  }
  [ui-section=slideshow] [data-intensity=as-solid-bg] .media ui-image-fallback > svg{
    opacity: 0.12;
  }

  /* ---------- Small-caps kicker labels ---------- */
  .subheading{
    letter-spacing: 0.14em;
  }

  /* ---------- Feature list -> floating spec/benefit cards ---------- */
  [ui-section=feature-list] .items-area{
    gap: var(--spacing-24);
  }
  [ui-section=feature-list] .items-area [ui-block=feature-item]{
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-16);
    padding: var(--spacing-24);
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(20, 15, 5, 0.08);
    transition: transform 0.35s cubic-bezier(0.27,1.06,0.18,1), box-shadow 0.35s cubic-bezier(0.27,1.06,0.18,1);
  }
  [ui-section=feature-list] .items-area [ui-block=feature-item]:hover{
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(20, 15, 5, 0.14);
  }
  [ui-section=feature-list] .items-area [ui-block=feature-item] .icon{
    background-color: #0A0A0A;
    color: #fff;
    border-radius: 12px;
  }
  [ui-section=feature-list] .items-area [ui-block=feature-item] .label{
    white-space: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
  }

  /* ---------- Image-with-text -> floating card over lifestyle photo ---------- */
  @media (min-width: 1029px){
    [ui-section=image-with-text] .wrapper-area{
      position: relative;
      display: block;
    }
    [ui-section=image-with-text] .wrapper-area [ui-block=media]{
      height: var(--height);
    }
    [ui-section=image-with-text] .wrapper-area [ui-block=content]{
      position: absolute;
      inset-inline-start: 40px;
      inset-block-end: 40px;
      max-width: 380px;
      background-color: #fff;
      border-radius: 18px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
      padding: var(--spacing-32);
    }
    [ui-section=image-with-text] .wrapper-area [ui-block=content][data-text-alignment=center]{
      inset-inline-start: 50%;
      transform: translateX(-50%);
    }
  }

  /* Footer sits on a black background — invert the (dark) wordmark logo
     so it reads white there automatically, no second upload needed. */
  [ui-layout=footer] .main-area .logo a:has(img) img{
    filter: invert(1) brightness(1.05);
  }

  /* ---------- Footer: trust badges + newsletter ---------- */
  [ui-layout=footer] .viora-newsletter{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-24);
    padding-bottom: var(--spacing-32);
    border-block-end: 1px solid rgba(255,255,255,0.12);
  }
  [ui-layout=footer] .viora-newsletter-text h4{
    font: var(--font-title-md);
    margin: 0 0 4px;
  }
  [ui-layout=footer] .viora-newsletter-text p{
    margin: 0;
    color: var(--color-on-surface-variant);
    font: var(--font-body-sm);
  }
  [ui-layout=footer] .viora-newsletter-form{
    display: flex;
    gap: var(--spacing-8);
    flex-wrap: wrap;
  }
  [ui-layout=footer] .viora-newsletter-form input{
    min-width: 220px;
    height: 44px;
    padding-inline: var(--spacing-16);
    border-radius: calc(1px * infinity);
    border: 1px solid rgba(255,255,255,0.25);
    background-color: transparent;
    color: inherit;
    font: var(--font-body-md);
  }
  [ui-layout=footer] .viora-newsletter-form input::placeholder{
    color: var(--color-on-surface-variant);
  }
  [ui-layout=footer] .viora-trust-badges{
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-24);
    padding-block: var(--spacing-24);
  }
  [ui-layout=footer] .viora-trust-badges span{
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-on-surface-variant);
  }
  [ui-layout=footer] .viora-trust-badges span i{
    font-size: 16px;
  }
  @media (max-width: 769px){
    [ui-layout=footer] .viora-newsletter{
      flex-direction: column;
      align-items: flex-start;
    }
    [ui-layout=footer] .viora-newsletter-form{
      width: 100%;
    }
    [ui-layout=footer] .viora-newsletter-form input{
      flex: 1;
    }
  }
}
