/* ==========================================================================
   Grow — Mobiele sticky CTA-balk: "Plan een proefles" + terug-naar-boven.

   Site-breed op mobiel; de zichtbaarheidslogica (welke pagina's) staat in
   includes/proefles-cta-bar.php. De oranje knop hergebruikt bewust de
   site-class .btn.btn-warning.rounded-pill (incl. de huisstijl-hover).
   ========================================================================== */
.gdk-cta-bar {
    box-sizing: border-box;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 16px rgba(2, 45, 38, .10);

    /* Verborgen tot je iets naar beneden scrollt; dan schuift-ie zacht in beeld.
       Trage, symmetrische ease-in-out zodat in- én uitschuiven rustig aanvoelt
       (geen snap). Container-entree, geen hover — huisstijl-hover blijft intact. */
    transform: translateY(130%);
    transition: transform .6s cubic-bezier(.45, 0, .55, 1);
    will-change: transform;
}
.gdk-cta-bar.is-visible {
    transform: translateY(0);
}

/* De oranje knop vult de balk; kleur/hover komen van .btn-warning.
   min-width:0 laat de knop krimpen i.p.v. de balk uit de viewport te duwen. */
.gdk-cta-bar__btn {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

/* Terug-naar-boven — zelfde look als de bestaande zwevende knop (#back-to-top):
   donkergroene cirkel, witte pijl. Hover volgt de huisstijl: alleen brightness. */
.gdk-cta-bar__top {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #022D26;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: filter .2s ease;
}
.gdk-cta-bar__top:hover,
.gdk-cta-bar__top:focus-visible {
    filter: brightness(0.92);
    outline: none;
}

/* Alleen op mobiel — op desktop staat de CTA al in de header. */
@media (min-width: 992px) {
    .gdk-cta-bar { display: none; }
}

/* Op mobiel: ruimte onderaan zodat de balk de footer niet permanent afdekt,
   en de zwevende thema-back-to-top verbergen (die zit nu in de balk). */
@media (max-width: 991.98px) {
    body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
    #back-to-top { display: none !important; }
}

/* Respecteer "reduce motion": dan geen slide, gewoon meteen tonen. */
@media (prefers-reduced-motion: reduce) {
    .gdk-cta-bar { transition: none; }
}
