/* STL Partners - Hero + Cards styles */
/* Paste into a WPCode CSS Snippet, site-wide or Home v2 page only */

  :root {
    --burgundy-deep: #3d1220;
    --burgundy: #6b1f3a;
    --burgundy-warm: #7a2540;
    --blue: #6b8fd6;
    --red: #e2051c;
    --orange: #f39100;
    --cream: #ffd494;
  }

  * { box-sizing: border-box; }

  .stl-hero-root {
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    color: #2c2c2c;
  }
  .stl-hero-root .stl-title,
  .stl-hero-root .stl-button {
    font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  }
  .stl-hero-root .stl-title {
    font-weight: 700 !important;
  }

  /* ============================================================
     BANNER
     ============================================================ */
  .stl-banner {
    position: relative;
    /* Explicit left/right reset — defeats any conflicting WPCode CSS
     * snippet that might still have left:50%; right:50% rules. */
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
	    height: var(--stl-hero-height, 480px);
    overflow: hidden;
    background: #3f152d;
    isolation: isolate;
  }

  .stl-banner canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
  }

  /* Custom hero images: keep the banner pinned to the configured
   * --stl-hero-height at every viewport width (it should never grow past
   * what's set in the block). To do that without cropping artwork placed
   * near the image's right edge (e.g. a logo mark), the image is sized to
   * its own true aspect ratio at that fixed height — via aspect-ratio,
   * so it's exact at any actual rendered height, not just the configured
   * one — then right-anchored. The banner's overflow:hidden trims any
   * excess off the LEFT side only (plain gradient background, safe to
   * lose); the right edge, where the logo sits, is never touched. */
  .stl-hero-image {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    height: 100%;
    width: auto;
    aspect-ratio: var(--stl-hero-image-ratio, 4.5) / 1;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    z-index: 0;
  }

  .stl-text-shade {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(
        ellipse at 20% 46%,
        rgba(30, 8, 18, 0.52) 0%,
        rgba(30, 8, 18, 0.34) 24%,
        rgba(30, 8, 18, 0.12) 46%,
        rgba(30, 8, 18, 0) 68%
      );
    pointer-events: none;
    z-index: 1;
  }

  .stl-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
  }

  /* Keep hero text on the page gutter, not on a centered max-width
     container, so it stays aligned on wide desktop screens too. */
  .stl-overlay__inner {
    position: relative;
    max-width: none;
    margin: 0;
    padding-left: var(--stl-gutter, 44px);
    padding-right: var(--stl-gutter, 44px);
    height: 100%;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 5;
  }

  .stl-text {
    position: absolute !important;
    top: 50%;
    left: var(--stl-gutter, 44px) !important;
    transform: translateY(-50%);
    width: 620px;
    max-width: 54%;
	    height: var(--stl-hero-text-height, 320px);
  }

  .stl-slide {
    position: absolute;
    top: 0; left: 0; right: 0;
	    bottom: var(--stl-hero-slide-bottom, 120px);
    /* Centre the title (+ subtitle) block vertically within its box instead
     * of pinning it to the top — the box itself still stops short of the
     * banner bottom to leave room for the CTA button. */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .stl-slide.is-active  { opacity: 1; transform: translateX(0); }
  .stl-slide.is-leaving { opacity: 0; transform: translateX(-50px); }

  .stl-hero-root .stl-title {
	    font-size: var(--stl-hero-title-size, 46px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.028em;
    margin: 0 0 18px 0;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,0.72), 0 8px 34px rgba(0,0,0,0.45);
    border: none; padding: 0; background: none; text-transform: none;
  }
  .stl-title-accent {
    color: var(--orange);
    font-weight: 500;
  }

  .stl-hero-root .stl-subtitle {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.55;
    margin: 0;
    letter-spacing: 0.005em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 12px rgba(0,0,0,0.65);
    max-width: 92%;
    border: none; padding: 0; background: none;
  }

  .stl-button {
    position: absolute !important;
    left: var(--stl-gutter) !important;
	    top: calc(50% + var(--stl-hero-cta-offset, 95px));
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    font-family: "PT Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
  }
  .stl-button:hover {
    background: #fff;
    color: var(--burgundy);
    gap: 20px;
  }
  .stl-button svg { width: 14px; height: 14px; transition: transform 0.35s ease; }
  .stl-button:hover svg { transform: translateX(4px); }

  /* Logo - full banner height, anchored right (required for glow overlay alignment) */
  .stl-logo {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    height: 100%;
	    max-height: var(--stl-hero-height, 480px);
    width: auto;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
    transform: none;
  }

  /* Glow canvas: neon brightening overlay for the logo */
  .stl-glow-canvas {
    position: absolute;
    top: 0;
    z-index: 2;
    pointer-events: none;
  }

  /* ============================================================
     CARDS SECTION
     ============================================================ */
  .stl-cards-wrap {
    background: linear-gradient(to bottom, rgba(107, 31, 58, 0.04) 0%, #ffffff 140px);
    padding: 72px 44px 40px;
  }

  .stl-cards-container {
    max-width: 1280px;
    margin: 0 auto;
  }

  .stl-cards {
    display: flex;
    gap: 32px;
    align-items: stretch;
  }

  .stl-card {
    flex: 1 1 0;
    background: #ffffff;
    border: 1px solid #ececec;
    border-top: 3px solid var(--burgundy);
    padding: 44px 44px 38px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-top-color 0.35s ease;
    box-shadow: 0 2px 14px rgba(30, 8, 18, 0.04);
  }
  .stl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(30, 8, 18, 0.11);
    border-top-color: var(--orange);
  }

  .stl-hero-root .stl-card-title {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.018em;
    color: var(--burgundy);
    margin: 0 0 10px;
    line-height: 1.1;
    border: none; border-bottom: none; text-decoration: none;
    padding: 0; background: none; text-transform: none;
  }

  .stl-card-underline {
    width: 40px; height: 2px;
    background: var(--orange);
    margin: 0 0 20px;
  }

  .stl-card-intro {
    font-size: 14.5px; line-height: 1.6;
    color: #555; margin: 0 0 28px; max-width: 94%;
  }

  .stl-card-links {
    list-style: none; padding: 0; margin: 0 0 32px; flex-grow: 1;
  }
  .stl-card-links li { border-top: 1px solid #f0f0f0; }
  .stl-card-links li:last-child { border-bottom: 1px solid #f0f0f0; }

  .stl-card-links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 2px; color: #2c2c2c; text-decoration: none;
    font-size: 14.5px; font-weight: 500; letter-spacing: 0.005em;
    transition: color 0.25s ease, padding 0.25s ease;
  }
  .stl-card-links a:hover { color: var(--burgundy); padding-left: 8px; }
  .stl-card-links a .arrow {
    width: 16px; height: 16px; color: #bcbcbc;
    transition: color 0.25s ease, transform 0.25s ease;
  }
  .stl-card-links a:hover .arrow { color: var(--orange); transform: translateX(4px); }

  .stl-card-cta {
    display: inline-flex; align-items: center; gap: 10px;
    align-self: flex-start; font-size: 11px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--burgundy); text-decoration: none;
    padding-bottom: 4px; border-bottom: 1.5px solid var(--burgundy);
    transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
  }
  .stl-card-cta:hover {
    color: var(--orange); border-bottom-color: var(--orange); gap: 14px;
  }
  .stl-card-cta svg { width: 14px; height: 14px; }

  @media (max-width: 880px) {
    .stl-cards { flex-direction: column; }
    .stl-card { padding: 36px 30px 32px; }
    .stl-card-title { font-size: 26px; }
  }

  .stl-hero-root .stl-card-links,
  .stl-hero-root .stl-card-links li {
    list-style: none !important; background: none !important;
    padding-left: 0 !important; margin-left: 0 !important;
  }
  .stl-hero-root .stl-card-links li::before { content: none !important; }
  .stl-hero-root .stl-card-links a { background: none; text-decoration: none; }
  .stl-hero-root .stl-card-links a:hover { text-decoration: none; }
  .stl-hero-root .stl-cards-wrap * { box-sizing: border-box; }

  .stl-hero-root .stl-card-title,
  .stl-hero-root h2.stl-card-title,
  .stl-hero-root .stl-card h2 {
    border: 0 none !important; border-bottom: 0 none !important;
    text-decoration: none !important; background-image: none !important;
    box-shadow: none !important; padding-bottom: 0 !important;
  }
  .stl-hero-root .stl-card-title::before,
  .stl-hero-root .stl-card-title::after,
  .stl-hero-root .stl-card h2::before,
  .stl-hero-root .stl-card h2::after {
    content: none !important; display: none !important;
  }

/* ============================================================
 * MOBILE — < 768px
 * - Hide the oversized STL logo + glow canvas (it dominates small screens)
 * - Switch text + CTA from absolute positioning to natural flow so they
 *   don't overlap when the title wraps to many lines
 * - Tighter banner height
 * ============================================================ */
@media (max-width: 768px) {
  .stl-hero-root .stl-banner {
    height: auto !important;
    min-height: 360px;
  }
  .stl-hero-root .stl-text-shade {
    background: linear-gradient(to bottom, rgba(30,8,18,0.5) 0%, rgba(30,8,18,0.15) 100%);
  }
  .stl-hero-root .stl-overlay {
    position: relative;
    inset: auto;
  }
  .stl-hero-root .stl-overlay__inner {
    height: auto;
    padding: 2.5rem var(--stl-gutter) 2.5rem;
    max-width: 100%;
  }
  .stl-hero-root .stl-text {
    position: relative !important;
    top: auto;
    left: auto !important;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .stl-hero-root .stl-slide {
    position: relative;
    bottom: auto;
  }
  /* Keep slide stacking working — only the active slide is visible */
  .stl-hero-root .stl-slide:not(.is-active) { display: none; }
  .stl-hero-root .stl-title {
    font-size: 30px !important;
  }
  .stl-hero-root .stl-subtitle {
    font-size: 14px;
  }
  .stl-hero-root .stl-button {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin-top: 1.5rem;
    display: inline-flex;
  }
  /* Hide the static logo + glow canvas on mobile —
   * the canvas particle animation continues to play, but the big static
   * logo image and its glow overlay are removed so they don't dominate. */
  .stl-hero-root .stl-logo,
  .stl-hero-root .stl-glow-canvas,
  .stl-hero-root #stl-bright-logo {
    display: none !important;
  }
}

/* ============================================================
 * EDITOR-ONLY constraints
 * Inside the Gutenberg editor (.editor-styles-wrapper or
 * .acf-block-preview), the hero block can blow out of the canvas
 * because of width:100vw. Constrain it to the editor's content
 * width and disable the static logo image (it's non-essential in
 * preview and saves vertical space).
 * ============================================================ */
.editor-styles-wrapper .stl-hero-root,
.acf-block-preview .stl-hero-root {
  width: 100% !important;
  margin: 0 !important;
}
.editor-styles-wrapper .stl-banner,
.acf-block-preview .stl-banner {
  width: 100% !important;
  margin: 0 !important;
  height: 320px !important;
  max-width: 100% !important;
}
.editor-styles-wrapper .stl-logo,
.acf-block-preview .stl-logo,
.editor-styles-wrapper .stl-glow-canvas,
.acf-block-preview .stl-glow-canvas {
  display: none !important;
}
.editor-styles-wrapper .stl-text,
.acf-block-preview .stl-text {
  width: 80%;
  max-width: 80%;
  height: auto;
  top: 30%;
}
.editor-styles-wrapper .stl-hero-root .stl-title,
.acf-block-preview .stl-hero-root .stl-title {
  font-size: 28px !important;
}
