/* =====================================================================
   OSE · CTA band · styles/components/cta-band.css
   ---------------------------------------------------------------------
   Full-bleed night band that asks for contact: a big left-aligned
   section header, the three contact actions and a quiet note. Its first
   child is the (empty until the starfield scene fills it) .starfield
   layer; the content sits above it. Component tokens only: --cta-band-*.

   Markup
     <section class="cta-band" data-surface="night" aria-labelledby="…">
       <div class="starfield" data-scene="starfield" aria-hidden="true"></div>
       <div class="cta-band__inner">
         <header class="section-header section-header--lg" data-reveal="section-header">…</header>
         <div class="cta-band__actions">
           <a class="btn btn--primary btn--lg btn--full-phone" href="https://zalo.me/…">
             <img class="cta-band__logo" src="/brand/third-party/zalo.svg" alt="" width="24" height="24">
             Nhắn Zalo</a>
           <a class="btn btn--secondary btn--lg btn--full-phone" href="tel:…">…Gọi ngay</a>
           <a class="btn btn--secondary btn--lg btn--full-phone" href="/lien-he/#form">Để lại thông tin</a>
         </div>
         <p class="cta-band__note">…</p>
       </div>
     </section>
   Surface   always painted night (--cta-band-bg); use data-surface="night"
             so the buttons and text re-map with it ("navy" still works).
   Header    a .section-header--lg (no --center). Any child of
             .cta-band__inner other than the actions and the note is treated
             as the header, so no extra class is needed.
   Layout    < 64em: one column, left-aligned; actions in a row (full
                     width on phones via .btn--full-phone), note below.
             >= 64em: three equal columns: the header spans two, the actions
                     the third (buttons stacked full width), the note under
                     them; bottoms aligned.
   Zalo logo the official mark from /brand/third-party/ (see
             reference/third-party-logos.md): shown unmodified, never
             recoloured, decorative (alt="") next to the visible label.
   Layers    .cta-band is the containing block and clips the starfield;
             .cta-band__inner sits above it (--cta-band-content-z).
   Static, no interactive states of its own (buttons bring theirs). No JS.
   ===================================================================== */

@layer components {
  .cta-band {
    position: relative;
    overflow: hidden;
    padding-block: var(--cta-band-padding-block);
    background-color: var(--cta-band-bg);
    color: var(--cta-band-text);
  }

  .cta-band__inner {
    position: relative;
    z-index: var(--cta-band-content-z);
    display: grid;
    justify-items: start;
    inline-size: min(var(--cta-band-max-width), 100% - var(--cta-band-padding-inline) - var(--cta-band-padding-inline));
    margin-inline: auto;
    text-align: start;
  }

  .cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--cta-band-actions-gap);
    inline-size: 100%;
  }

  .cta-band__logo {
    flex: none;
    inline-size: var(--cta-band-logo-size);
    block-size: var(--cta-band-logo-size);
  }

  .cta-band__note {
    margin-block-start: var(--cta-band-note-gap);
    font-size: var(--cta-band-note-font-size);
    color: var(--cta-band-note-color);
  }

  @media (min-width: 64em) {
    .cta-band__inner {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      column-gap: var(--cta-band-column-gap);
      align-items: end;
    }

    /* The header: whatever is not the actions or the note. */
    .cta-band__inner > :not(.cta-band__actions, .cta-band__note) {
      grid-column: 1 / span 2;
      grid-row: 1 / span 2;
      margin-block-end: 0;
    }

    .cta-band__actions {
      grid-column: 3;
      grid-row: 1;
      flex-direction: column;
      align-items: stretch;
    }

    .cta-band__note {
      grid-column: 3;
      grid-row: 2;
    }
  }
}
