/* ============================================================================
   newsletter-float.css — Areeka floating newsletter button (homepage only)
   Uses only variables defined in assets/css/site.css:
     --gold #c9a84c · --gold-deep #b8942e · --gold-soft #f3e9cd
     --petrol-deep #0a1f18 · --ink-soft #41554d · --olive #e8f0e5
   ========================================================================== */

.areeka-mailman {
    display: inline-flex;
    margin: 18px 0 18px 24px;
    /* [C-02 2026-10-02] Measured in Chrome (412x915 and 1366x900): the fixed trigger sat on
       top of a live ad unit for the whole scroll range (56x56 px on ins.adsbygoogle under_hero
       on mobile, 64x64 px on the content_right_rail on desktop). The newsletter control must
       not cover advertising, so it is placed in the flow instead of floating over the page. */
    position: static;
    /* Stacked above .back-to-top (site.css: bottom 18px, left 18px, 46px tall)
    /* so the existing back-to-top control is never covered. */
    bottom: 104px;
    left: 24px;
    width: 64px;
    height: 64px;
    z-index: 9000;
    cursor: pointer;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15), 0 2px 6px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: areeka-mailman-bounce 3s ease-in-out infinite;
    padding: 0;
    border: 0;
    -webkit-tap-highlight-color: transparent;
}

.areeka-mailman:hover,
.areeka-mailman:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .20);
    animation-play-state: paused;
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.areeka-mailman img,
.areeka-mailman svg {
    width: 48px;
    height: 48px;
    display: block;
}

@keyframes areeka-mailman-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .areeka-mailman { animation: none; }
    .areeka-mailman-panel.is-open { animation: none; }
}

/* Mobile */
@media (max-width: 767px) {
    .areeka-mailman {
    display: inline-flex;
    margin: 18px 0 18px 24px;
        width: 56px;
        height: 56px;
        bottom: 92px;
        left: 16px;
    }
    .areeka-mailman img,
    .areeka-mailman svg { width: 42px; height: 42px; }
}

/* ---------------------------------------------------------------------------
   Panel (bottom-left popover)
   --------------------------------------------------------------------------- */
.areeka-mailman-panel {
    /* Same decision as the trigger above: the panel is a fixed overlay in the same corner. */
    position: static;
    bottom: 180px;
    left: 24px;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
    padding: 20px;
    z-index: 9001;
    display: none;
    font-family: inherit;
    border-top: 4px solid var(--gold);
    box-sizing: border-box;
}

.areeka-mailman-panel.is-open {
    display: block;
    animation: areeka-panel-in .25s ease-out;
}

@keyframes areeka-panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.areeka-mailman-panel h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--petrol-deep);
}

.areeka-mailman-panel p {
    margin: 0 0 14px;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.areeka-mailman-panel input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: .95rem;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-family: inherit;
}

.areeka-mailman-panel input[type="email"]:focus {
    outline: none;
    border-color: var(--gold);
}

.areeka-mailman-panel button[type="submit"] {
    width: 100%;
    padding: 11px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
    font-family: inherit;
}

.areeka-mailman-panel button[type="submit"]:hover {
    background: var(--gold-deep);
}

.areeka-mailman-panel button[type="submit"]:disabled {
    opacity: .6;
    cursor: wait;
}

.areeka-mailman-panel .msg {
    margin-top: 10px;
    font-size: .85rem;
    min-height: 20px;
}

.areeka-mailman-panel .msg.success { color: #2d7a2d; }
.areeka-mailman-panel .msg.error   { color: #b22; }

/* Honeypot: visually and programmatically hidden from humans */
.areeka-mailman-panel .areeka-nf-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.areeka-mailman-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.areeka-mailman-close:hover { color: var(--petrol-deep); }

/* No-JS fallback: keep the panel reachable via :target/anchor */
.areeka-mailman-panel:target { display: block; }

/* Mobile panel */
@media (max-width: 767px) {
    .areeka-mailman-panel {
        bottom: 160px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
    }
}
