/* ==========================================================================
   YES! 品牌標誌 — 圓形對話泡泡（右下有尾巴）

   .yes-brand-mark 係共用嘅 mark，由 partials/brand-mark.blade.php 輸出：
   header 同「冇圖片」佔位符都用同一個。尺寸全部用 em，跟父層 font-size
   縮放（header 跟後台「品牌標誌字級」，佔位符跟 .yes-no-image 嘅字級）。
   ========================================================================== */

.yes-brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75em;
    height: 1.75em;
}

.yes-brand-mark__bubble {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* 尾巴同圓形外框會貼近 viewBox 邊位，要容許少少溢出。 */
    overflow: visible;
}

.yes-brand-mark__text {
    position: relative;
    z-index: 1;
    color: #fff;
    line-height: 1;
    letter-spacing: -.02em;
    /* 泡泡圓心偏上，文字微微上移先視覺置中。 */
    transform: translateY(-3%);
}

/* Header 專用外層：旋轉 + pop 陰影 */
.yes-brand-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-3deg);
    transition: transform .15s ease;
    /* 沿用主題嘅 pop 陰影：用 drop-shadow 先可以貼住泡泡形狀，
       唔似 box-shadow 咁只跟住四方盒。 */
    filter: drop-shadow(3px 3px 0 #000);
}

.group:hover .yes-brand-logo {
    transform: rotate(0deg);
}

.yes-footer-brand .yes-brand-logo {
    filter: drop-shadow(3px 3px 0 rgba(255, 255, 255, .28));
}

.yes-footer-brand .yes-brand-online-shop {
    color: #fff;
}

.yes-footer-brand .yes-brand-tagline {
    color: #fff;
}

.yes-footer-brand .yes-brand-subtitle {
    color: #d1d5db;
}

/* 品牌字尾「online shop」：跟喺 JapHK 後面，字級細一截，保持粗體對齊基線。 */
.yes-brand-tagline {
    display: inline-flex;
    align-items: baseline;
    gap: .22em;
}

.yes-brand-online-shop {
    font-size: .55em;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
    color: #111;
    white-space: nowrap;
}

/* 手機保留同桌面版一樣嘅完整品牌組合，只按可用闊度等比縮細。 */
@media (max-width: 639px) {
    header .yes-header-brand {
        gap: .35rem !important;
        min-width: 0;
    }

    header .yes-brand-logo {
        font-size: 1.75rem !important;
    }

    header .yes-brand-tagline {
        gap: .12em;
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    header .yes-brand-online-shop {
        display: inline;
        font-size: .55em;
    }

    header .yes-brand-subtitle {
        margin-top: .08rem;
        font-size: .52rem !important;
        line-height: 1.1 !important;
    }
}

@media (max-width: 359px) {
    header .yes-brand-logo {
        font-size: 1.5rem !important;
    }

    header .yes-brand-tagline {
        font-size: .85rem !important;
    }

    header .yes-brand-subtitle {
        font-size: .46rem !important;
    }
}
