/* ─── Coffee Brand Dial v5.0 — Premium ─── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

.cbd-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Warm coffee cream base */
    background: linear-gradient(170deg, #f2e6d0 0%, #e8d8be 30%, #ddd0b8 50%, #e5d5bf 70%, #f0e4d0 100%);
    overflow: hidden;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
    min-height: 100vh;
}

/* Animated warm light glow */
.cbd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 15%, rgba(210,175,120,0.25) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 80% 80%, rgba(180,140,90,0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(200,165,100,0.1) 0%, transparent 60%);
    animation: cbdGlow 10s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

/* Coffee-themed decorative SVG pattern overlay */
.cbd-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%237a5c3a' stroke-width='1'%3E%3Cellipse cx='20' cy='20' rx='6' ry='9' transform='rotate(-25 20 20)'/%3E%3Cpath d='M16 15Q20 20 16 25'/%3E%3Cellipse cx='60' cy='55' rx='5' ry='8' transform='rotate(15 60 55)'/%3E%3Cpath d='M56 50Q60 55 56 60'/%3E%3Ccircle cx='55' cy='15' r='4'/%3E%3Cpath d='M51 15h8M55 11v8' stroke-width='0.5' opacity='0.5'/%3E%3Cellipse cx='15' cy='60' rx='4' ry='6' transform='rotate(30 15 60)'/%3E%3Cpath d='M12 57Q15 60 12 63' stroke-width='0.8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

@keyframes cbdGlow {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.01); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* Hint text above dial — always visible */
.cbd-hint {
    position: relative;
    z-index: 3;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin: 0 0 20px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Dial — responsive sizing */
.cbd-hero__dial {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    display: flex;
    justify-content: center;
    flex-shrink: 1;
    min-height: 0;
}
.cbd-hero__dial canvas {
    display: block;
    max-width: 100%;
    /* Limit height so menu stays visible */
    max-height: calc(100vh - 200px);
    width: auto;
    height: auto;
    cursor: pointer;
    object-fit: contain;
}

/* Menu below dial — always visible */
.cbd-menu-wrap {
    position: relative;
    z-index: 3;
    margin-top: 24px;
    flex-shrink: 0;
}
.cbd-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.cbd-menu li { margin: 0; padding: 0; }
.cbd-menu a {
    color: var(--cbd-menu-color, #6b5440);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}
.cbd-menu a:hover {
    color: var(--cbd-menu-hover, #c9a84c);
    border-bottom-color: var(--cbd-menu-hover, #c9a84c);
}

@media (max-width: 768px) {
    .cbd-hero { padding: 24px 16px; }
    .cbd-hero__dial { max-width: 95vw; }
    .cbd-hero__dial canvas { max-height: calc(100vh - 160px); }
    .cbd-menu { gap: 20px; }
    .cbd-menu a { font-size: 0.75rem; }
    .cbd-menu-wrap { margin-top: 16px; }
}
@media (max-width: 480px) {
    .cbd-hero { padding: 16px 10px; }
    .cbd-hint { font-size: 0.65rem; margin-bottom: 12px; }
    .cbd-hero__dial canvas { max-height: calc(100vh - 140px); }
    .cbd-menu { gap: 14px; }
    .cbd-menu-wrap { margin-top: 12px; }
}
